[PATCH] Fix cast int-to-pointer and pointer-to-int

Corbin Simpson mostawesomedude at gmail.com
Thu Feb 5 11:28:44 PST 2009


Julien Cristau wrote:
> On Thu, 2009-02-05 at 16:16 -0200, Paulo César Pereira de Andrade wrote:
>>   Forgive my stupidity, but isn't it a C language rule that
>> sizeof(long) == sizeof(void *) is always true?
> 
> No.  As said earlier in this thread there are IL32P64 systems.


C only makes one guarantee regarding sizeof() and primitives, and that
is that sizeof(char) == 1.

~ C.



More information about the xorg mailing list