On Wed, 2005-10-05 at 16:53 +0200, Tristan Tarrant wrote: > > rb_daap_structure_add (mlit, RB_DAAP_CC_MIID, > (gint32) GPOINTER_TO_INT(source)); I think this came up a while ago, but that won't work because pointers can be larger than ints - so it may corrupt the pointer. From the glib docs, you can use GPOINTER_TO_INT and GINT_TO_POINTER to store an integer in a pointer, but you CANNOT store a pointer in an integer. Cheers, James "Doc" Livingston -- Finding a needle in a haystack is a lot easier if you burn down the haystack and scan the ashes with a metal detector. -- the Silicon Valley Tarot (another one nicked from David Rush)
Attachment:
signature.asc
Description: This is a digitally signed message part