|
From: | Andreas Färber |
Subject: | Re: [Qemu-devel] [PATCH RFT 1/2] coreaudio: Fix OSStatus format specifier |
Date: | Thu, 23 Jun 2011 16:29:30 +0200 |
Am 23.06.2011 um 14:54 schrieb malc:
On Thu, 23 Jun 2011, Andreas F?rber wrote:OSStatus type is defined as SInt32. Use %d format instead of %ld to avoid a warning on ppc64.Which itself is defined as typedef signed long SInt32; (here on ppc32 inside: /Developer/SDKs/MacOSX10.4u.sdk/usr/include/libkern/OSTypes.h)
Thanks for the pointer! Here it's: #if __LP64__ typedef signed int SInt32; #else typedef signed long SInt32; #endif
So i'd suggest to just cast the thing to appropriate long type and be done with it.
I posted a different solution to avoid unnecessary 64-bit width on ppc64/x86_64.
Andreas
[Prev in Thread] | Current Thread | [Next in Thread] |