• 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: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 4.5 and NSInteger/NSUInteger Format Specifier Warnings


  • Subject: Re: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
  • From: Dave Keck <email@hidden>
  • Date: Thu, 04 Oct 2012 00:52:54 -1000

I've found the best solution for (integral, decimal) format specifiers
is to always use %ju and %jd, and cast the arguments to uintmax_t and
intmax_t, respectively. That way you never have to worry about the
size of the underlying types -- all you need to know is whether the
type is signed.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >4.5 and NSInteger/NSUInteger Format Specifier Warnings (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
  • Next by Date: Re: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
  • Previous by thread: Re: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
  • Next by thread: Re: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
  • Index(es):
    • Date
    • Thread