[PD-cvs] externals/iemlib/src/iemlib2 parentdollarzero.c,1.2,1.3

IOhannes m zmölnig zmoelnig at users.sourceforge.net
Sat Sep 3 10:31:59 CEST 2005


Update of /cvsroot/pure-data/externals/iemlib/src/iemlib2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14339

Modified Files:
	parentdollarzero.c 
Log Message:
removed the cast from (void*) to (unsigned int) [which, btw, should really be "bool" for x_is_there_a_parent], and replaced it with a proper test. this makes it work on machines where sizeof(void*)!=sizeof(uint) (like x86_64)


Index: parentdollarzero.c
===================================================================
RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib2/parentdollarzero.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** parentdollarzero.c	8 Jul 2005 02:04:25 -0000	1.2
--- parentdollarzero.c	3 Sep 2005 08:31:57 -0000	1.3
***************
*** 41,45 ****
    t_canvas *this_canvas = glist_getcanvas(glist);
  
!   x->x_is_there_a_parent = (unsigned int)this_canvas->gl_owner;
  
    if(x->x_is_there_a_parent)
--- 41,45 ----
    t_canvas *this_canvas = glist_getcanvas(glist);
  
!   x->x_is_there_a_parent = (unsigned int)(0!=this_canvas->gl_owner);
  
    if(x->x_is_there_a_parent)





More information about the Pd-cvs mailing list