Re: #warning 64BIT: Inspect use of sizeof
Re: #warning 64BIT: Inspect use of sizeof
- Subject: Re: #warning 64BIT: Inspect use of sizeof
- From: David Duncan <email@hidden>
- Date: Wed, 15 Aug 2012 18:49:58 -0700
On Aug 14, 2012, at 12:12 PM, Jerry Krinock <email@hidden> wrote:
> When I run Apple's CocoaConvert64 tool on a source file, it flags wherever I've invoked sizeof() with
>
> #warning 64BIT: Inspect use of sizeof
>
> However when I read Apple's "64-Bit Transistion Guide", sizeof() is only mentioned as being a great thing which should be used liberally. And that makes sense to me.
>
> What am I supposed to "inspect" for?
The only thing I can imagine is if you have code that expects sizeof(int) == sizeof(long) == sizeof(void*) or something along those lines.
--
David Duncan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden