diff options
author | Sam Lantinga <slouken@libsdl.org> | 2006-03-31 06:27:47 +0000 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2006-03-31 06:27:47 +0000 |
commit | 9a768f57fba30855c4dffe0fcd0d36f76acd5354 (patch) | |
tree | 1c386154053c216f66e7db824a0438e70a1ae7c7 /test/testplatform.c | |
parent | ab73d847ffb53f4a9f785cca01753212c97a0123 (diff) | |
download | sdl-9a768f57fba30855c4dffe0fcd0d36f76acd5354.tar.gz |
Ugh, more 64-bit cleanup
Diffstat (limited to 'test/testplatform.c')
-rw-r--r-- | test/testplatform.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/testplatform.c b/test/testplatform.c index d67991b3b..5adca474f 100644 --- a/test/testplatform.c +++ b/test/testplatform.c @@ -21,26 +21,26 @@ int TestTypes(SDL_bool verbose) 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 @@ int TestEndian(SDL_bool verbose) } #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 ) { |