Fixed some printf() compiler warnings in test/testplatform.c SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Tue, 23 Aug 2011 02:57:36 -0400
branchSDL-1.2
changeset 5637 d39fe8e7d26a
parent 5629 e594196ba99f
child 5639 72659c5c8616
Fixed some printf() compiler warnings in test/testplatform.c
test/testplatform.c
--- a/test/testplatform.c	Mon Aug 22 02:11:56 2011 -0400
+++ b/test/testplatform.c	Tue Aug 23 02:57:36 2011 -0400
@@ -21,27 +21,27 @@
 
 	if ( badsize(sizeof(Uint8), 1) ) {
 		if ( verbose )
-			printf("sizeof(Uint8) != 1, instead = %ul\n",
-								sizeof(Uint8));
+			printf("sizeof(Uint8) != 1, instead = %lu\n",
+								(unsigned long) sizeof(Uint8));
 		++error;
 	}
 	if ( badsize(sizeof(Uint16), 2) ) {
 		if ( verbose )
-			printf("sizeof(Uint16) != 2, instead = %ul\n",
-								sizeof(Uint16));
+			printf("sizeof(Uint16) != 2, instead = %lu\n",
+								(unsigned long) sizeof(Uint16));
 		++error;
 	}
 	if ( badsize(sizeof(Uint32), 4) ) {
 		if ( verbose )
-			printf("sizeof(Uint32) != 4, instead = %ul\n",
-								sizeof(Uint32));
+			printf("sizeof(Uint32) != 4, instead = %lu\n",
+								(unsigned long) sizeof(Uint32));
 		++error;
 	}
 #ifdef SDL_HAS_64BIT_TYPE
 	if ( badsize(sizeof(Uint64), 8) ) {
 		if ( verbose )
-			printf("sizeof(Uint64) != 8, instead = %ul\n",
-								sizeof(Uint64));
+			printf("sizeof(Uint64) != 8, instead = %lu\n",
+								(unsigned long) sizeof(Uint64));
 		++error;
 	}
 #else
@@ -113,7 +113,7 @@
 #ifdef _MSC_VER
 		printf("Value 64 = 0x%I64X, swapped = 0x%I64X\n", value64, SDL_Swap64(value64));
 #else
-		printf("Value 64 = 0x%llX, swapped = 0x%llX\n", value64, SDL_Swap64(value64));
+		printf("Value 64 = 0x%llX, swapped = 0x%llX\n", (unsigned long long) value64, (unsigned long long) SDL_Swap64(value64));
 #endif
 	}
 	if ( SDL_Swap64(value64) != swapped64 ) {