diff test/testplatform.c @ 1615:d5298e8f22b3

Ugh, more 64-bit cleanup
author Sam Lantinga <slouken@libsdl.org>
date Fri, 31 Mar 2006 06:27:47 +0000
parents 7a610f25c12f
children f12379c41042
line wrap: on
line diff
--- a/test/testplatform.c	Fri Mar 31 06:16:20 2006 +0000
+++ b/test/testplatform.c	Fri Mar 31 06:27:47 2006 +0000
@@ -21,26 +21,26 @@
 
 	if ( badsize(sizeof(Uint8), 1) ) {
 		if ( verbose )
-			printf("sizeof(Uint8) != 1, instead = %d\n",
+			printf("sizeof(Uint8) != 1, instead = %ul\n",
 								sizeof(Uint8));
 		++error;
 	}
 	if ( badsize(sizeof(Uint16), 2) ) {
 		if ( verbose )
-			printf("sizeof(Uint16) != 2, instead = %d\n",
+			printf("sizeof(Uint16) != 2, instead = %ul\n",
 								sizeof(Uint16));
 		++error;
 	}
 	if ( badsize(sizeof(Uint32), 4) ) {
 		if ( verbose )
-			printf("sizeof(Uint32) != 4, instead = %d\n",
+			printf("sizeof(Uint32) != 4, instead = %ul\n",
 								sizeof(Uint32));
 		++error;
 	}
 #ifdef SDL_HAS_64BIT_TYPE
 	if ( badsize(sizeof(Uint64), 8) ) {
 		if ( verbose )
-			printf("sizeof(Uint64) != 8, instead = %d\n",
+			printf("sizeof(Uint64) != 8, instead = %ul\n",
 								sizeof(Uint64));
 		++error;
 	}
@@ -110,7 +110,11 @@
 	}
 #ifdef SDL_HAS_64BIT_TYPE
 	if ( verbose ) {
+#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));
+#endif
 	}
 	if ( SDL_Swap64(value64) != swapped64 ) {
 		if ( verbose ) {