64-bit Architecture Pointer Storage
- From: Shaw Terwilliger <sterwill postman abisource com>
 
- To: gtk-list redhat com
 
- Subject: 64-bit Architecture Pointer Storage
 
- Date: Mon, 16 Nov 1998 11:45:45 -0600
 
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]