2009/12/27 Khem Raj <[email protected]>:
> On (25/11/09 07:49), Graham Gower wrote:
>> sizeof returns long unsigned int on x86_64. This is fixed in r365.
>
> sizeof return size_t which is a type in itself so if you want
> portability between 32-bit and 64-bit systems you should probably
> use 'z' length modifier in printf formats. '%zd' would work correctly
> irrespective of word lenght of the processor. You need C99 compliant
> compiler though.
>
> Thanks
>
> -Khem

You're right. r365 casts it to an int instead, in an attempt to
maintain portability.

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to