On Sun, Nov 06, 2005 at 10:42:19AM +0100, Peter Strömberg wrote: > steven mestdagh wrote: > > >Yes. I think the problem comes from line 1047 of drgeo_figure.cc: > > > >return GINT_TO_POINTER (strtol ((gchar *) data.key, NULL, 16)); > > > >Looks like bad design... it's using the address of item (pointer value) > >as a hash key, and the pointer happens to be larger than INT_MAX (the > >value it can't find above). Maybe this can be solved by generating the > >hash key in a different way. > > > This works > > - return GINT_TO_POINTER (strtol ((gchar *) data.key, NULL, 16)); > + return GUINT_TO_POINTER (strtoul ((gchar *) data.key, NULL, 16));
indeed, I missed replacing strtol with strtoul earlier; thanks! -- Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
