diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-09-03 08:31:57 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-09-03 08:31:57 +0000 |
commit | e2d5d0974639ac1dc9929a85211b889ba68b4e73 (patch) | |
tree | 5673c6dd4f399ad8bd9c75700e85945c1e28c2f2 | |
parent | 6e998a2511a2631e9419242ae1419d97fbcc2b14 (diff) |
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)
svn path=/trunk/externals/iemlib/; revision=3478
-rw-r--r-- | src/iemlib2/parentdollarzero.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iemlib2/parentdollarzero.c b/src/iemlib2/parentdollarzero.c index 477c2c5..e680f4c 100644 --- a/src/iemlib2/parentdollarzero.c +++ b/src/iemlib2/parentdollarzero.c @@ -40,7 +40,7 @@ static void *parentdollarzero_new(void) t_glist *glist = (t_glist *)canvas_getcurrent(); t_canvas *this_canvas = glist_getcanvas(glist); - x->x_is_there_a_parent = (unsigned int)this_canvas->gl_owner; + x->x_is_there_a_parent = (unsigned int)(0!=this_canvas->gl_owner); if(x->x_is_there_a_parent) x->s_parent_unique = canvas_realizedollar((t_canvas *)this_canvas->gl_owner, gensym("$0")); |