• 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: 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

  • Follow-Ups:
    • Re: #warning 64BIT: Inspect use of sizeof
      • From: Quincey Morris <email@hidden>
References: 
 >#warning 64BIT: Inspect use of sizeof (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Basic constraints: Cancel & OK buttons
  • Next by Date: Re: Where do these come from...
  • Previous by thread: #warning 64BIT: Inspect use of sizeof
  • Next by thread: Re: #warning 64BIT: Inspect use of sizeof
  • Index(es):
    • Date
    • Thread