-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Earnie Boyd on 10/5/2006 7:22 AM:
> Quoting Bruce Korb <[EMAIL PROTECTED]>:
> 
>> 5.8.7 this weekend.  *sigh*.
>> This is likely a problem where sizeof(int) != sizeof(void*).
>>
> 
> Based on what I've read somewhere recently that the size of a pointer 
> is equal to the size of long.  It just happens that in the 32bit world 
> that the size of int is equal to the size of long.

Forget what you've read.  The C standard and POSIX make no requirements
about the sizeof(void*) vs. sizeof(int) or sizeof(long).  Making
assumptions that they are equal is a sign of broken code; just because it
HAPPENS to work on your 32bit machine does not make it right.  Pointers
are even allowed to be smaller than ints, although good luck finding an
actual machine with those semantics.  The standards do, however, make a
requirement that sizeof(void*) == sizeof(intptr_t), so that you can safely
convert a pointer to an integer type.

- --
Life is short - so eat dessert first!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFJQyy84KuGfSFAYARAvy5AJ9VnTjmuvO/mpD5ndMP25sblClgBQCgjqlr
YurYxaV0k3ywzg6LZZ34jPY=
=rtzW
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Autogen-users mailing list
Autogen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/autogen-users

Reply via email to