13 Jul
2010
13 Jul
'10
5:04 p.m.
On Tue, Jul 13, 2010 at 1:58 PM, Adrian Stutz <adrian@sttz.ch> wrote:
On Mon, Jul 12, 2010 at 19:45, Diego Biurrun <diego@biurrun.de> wrote:
I still get a large number of these, maybe you can fix them:
Hm, it seems my fix wasn't right and I'm not sure how to handle this correctly.
UInt32 is defined as:
#if __LP64__ typedef unsigned int UInt32; #else typedef unsigned long UInt32; #endif
So it should be %u in 64bit and %lu on 32bit systems (which I guess is why the warnings disappeared for me but appeared for you).
Should I just cast them to unsigned long and use %lu?
Yes, I believe this is the recommended way to print UInt32 and OSStatus.