printing NSUInteger in iOS
printing NSUInteger in iOS
- Subject: printing NSUInteger in iOS
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Mon, 18 Nov 2013 03:34:08 +0700
Xcode 5.0.2 compiles this for OS X without warnings ( NS_BUILD_32_LIKE_64=1):
NSUInteger abc = 23;
NSLog(@"%s abc %lu",__FUNCTION__, abc);
But in an iOS app it tells me "Values of type 'NSUInteger' should not be used as format arguments; add an explicit cast to 'unsigned long' instead".
How to get rid of this warning (which makes no sense for NS_BUILD_32_LIKE_64=1)?
(Without casting each NSUInteger to 'unsigned long')
Gerriet.
_______________________________________________
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