[PD] equality and void * pointers

Jonathan Wilkes jancsika at yahoo.com
Thu Oct 1 22:45:15 CEST 2015


Hi list,
int compare_pointers(t_pd *foo){     long bar = generate_random_long();     return (((void *)foo) == ((void *)bar));}
(I probably have unnecessary parens there...)
Is the check for equality a case of undefined behavior?
If so, doesn't glob_findinstance of s_print.c also lead to the sameundefined behavior?
-Jonathan 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20151001/560ef944/attachment.html>


More information about the Pd-list mailing list