[10174] in The GTK GIMP ToolKit mailing list archive
[gtk-list] 64-bit Architecture Pointer Storage
daemon@ATHENA.MIT.EDU (Shaw Terwilliger)
Mon Nov 16 12:46:29 1998
Date: Mon, 16 Nov 1998 11:45:45 -0600
From: Shaw Terwilliger <sterwill@postman.abisource.com>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
There seem to be some problems throughout GTK in assuming
that "sizeof(unsigned int) == sizeof(unsigned int *)" (or
any pointer). Specifically, in the item factory header,
callbacks are stored as "guints", typedef'ed to be an "unsigned
int" by glib.h. I believe this is a problem on the Alpha,
where an unsigned int is 32-bits, and a pointer is 64-bits
(I seem to remember this, I may be wrong).
Is there any reason pointers are being stored as unsigned
ints internally? Why not use the '*'?
--
Shaw Terwilliger
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null