Re: #warning 64BIT: Inspect use of sizeof
Re: #warning 64BIT: Inspect use of sizeof
- Subject: Re: #warning 64BIT: Inspect use of sizeof
- From: Quincey Morris <email@hidden>
- Date: Wed, 15 Aug 2012 22:11:25 -0700
On Aug 15, 2012, at 18:49 , David Duncan <email@hidden> wrote:
> The only thing I can imagine is if you have code that expects sizeof(int) == sizeof(long) == sizeof(void*) or something along those lines.
From the "64-Bit Transition Guide for Cocoa":
> sizeof Operator and @encode Directive
>
> Script action: Converts instances of sizeof and @encode where the argument is int, unsigned int, and float (to NSInteger, NSUInteger, and CGFloat, respectively). For other cases, generates warnings (with possible false negatives).
>
> Go over each warning and make sure that no conversion needs to made manually.
(Just to even up the score for transition documentation, which has been taking a hit recently.)
_______________________________________________
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