• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: #warning 64BIT: Inspect use of sizeof
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: 64-Bit Transition GuideS
      • From: Jerry Krinock <email@hidden>
References: 
 >#warning 64BIT: Inspect use of sizeof (From: Jerry Krinock <email@hidden>)
 >Re: #warning 64BIT: Inspect use of sizeof (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Basic constraints: Cancel & OK buttons
  • Next by Date: Re: Speed up image display for large raw images?
  • Previous by thread: Re: #warning 64BIT: Inspect use of sizeof
  • Next by thread: Re: 64-Bit Transition GuideS
  • Index(es):
    • Date
    • Thread