On Sun, 20 Jun 2010 19:47:41 +0900 Carsten Haitzler (The Rasterman) <ras...@rasterman.com> wrote: > > I found another warning which needs attention and is likely to cause > > problems on 64-bit systems and is probably not visible on a 32-bit > > system. It might be related or not, but certainly a potential source > > for segfaults. > > > > In e/src/modules/comp/e_mod_config.c > > e_mod_config.c: In function '_style_demo': > > e_mod_config.c:246: warning: cast from pointer to integer of > > different size e_mod_config.c:248: warning: cast to pointer from > > integer of different size > > > > It's the only one of this kind for enlightenment and all it's > > dependencies. > > it's safe. i knew i was casting a pointer. it will be fine on any > number of bits :) (32,, 64.. or more).
Maybe cast the pointer<->integer through a intptr_t or a uintptr_t? A little uglier, but it gets rid of all the size warnings on any size arch. int foo = (int)(intptr_t)voidthingy; Also avoids mailing list posts on the topic, which is even better ;-) Regards, nash ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel