Re: Generic query about bit opreation in case of 64bit OS.
Re: Generic query about bit opreation in case of 64bit OS.
- Subject: Re: Generic query about bit opreation in case of 64bit OS.
- From: Alastair Houghton <email@hidden>
- Date: Tue, 1 Jun 2010 16:59:54 +0100
On 1 Jun 2010, at 13:10, Brian Bergstrand wrote:
> "unsigned long" in LP64 is not 32bits, it is 64bits. Use "unsigned int" for 32bit storage in LP32 and LP64.
No, don't do that. Use uint32_t and #include <inttypes.h>. That way you're guaranteed to be using an appropriate type whatever the platform.
Kind regards,
Alastair
--
http://alastairs-place.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden