After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 65367 - 64bit (alpha) Issues with GType change
64bit (alpha) Issues with GType change
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gobject
1.3.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2001-11-26 06:18 UTC by George Lebl
Modified: 2011-02-18 15:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix 64bit issues with GType (5.86 KB, patch)
2001-11-26 06:19 UTC, George Lebl
none Details | Review

Description George Lebl 2001-11-26 06:18:51 UTC
In several places the code uses the GUINT_TO_POINTER and GPOINTER_TO_UINT
macros to convert to/from GType and gpointer.  This is wrong as it
truncates the pointer sized GType.  Also when printing out a GType the code
used %u format which is no longer valid, I changed this to %lu and cast to
gulong,
which is the only sane/safe way to do it.  Patch is attached.
Comment 1 George Lebl 2001-11-26 06:19:39 UTC
Created attachment 6093 [details] [review]
Patch to fix 64bit issues with GType
Comment 2 Havoc Pennington 2001-12-12 03:20:05 UTC
Did this get applied yet?