Re: 4.5 and NSInteger/NSUInteger Format Specifier Warnings
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