64-bit Architecture Pointer Storage



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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]