summaryrefslogtreecommitdiff
path: root/test/testplatform.c
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2010-01-21 07:22:11 +0000
committerSam Lantinga <slouken@libsdl.org>2010-01-21 07:22:11 +0000
commitbe297570e80cd1ef3ae43a412a7f68a17d8a6553 (patch)
tree9789b4bd896e432c396ac5dfff37d978fa62658a /test/testplatform.c
parent30ba07569dc843e5c9e8f7e75def2c4f24c6887c (diff)
downloadsdl-be297570e80cd1ef3ae43a412a7f68a17d8a6553.tar.gz
Fixed compile warning on 64-bit Mac OS X
Diffstat (limited to 'test/testplatform.c')
-rw-r--r--test/testplatform.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/testplatform.c b/test/testplatform.c
index c3561f8f6..74a70e1b3 100644
--- a/test/testplatform.c
+++ b/test/testplatform.c
@@ -24,23 +24,27 @@ TestTypes(SDL_bool verbose)
if (badsize(sizeof(Uint8), 1)) {
if (verbose)
- printf("sizeof(Uint8) != 1, instead = %u\n", sizeof(Uint8));
+ printf("sizeof(Uint8) != 1, instead = %u\n",
+ (unsigned int)sizeof(Uint8));
++error;
}
if (badsize(sizeof(Uint16), 2)) {
if (verbose)
- printf("sizeof(Uint16) != 2, instead = %u\n", sizeof(Uint16));
+ printf("sizeof(Uint16) != 2, instead = %u\n",
+ (unsigned int)sizeof(Uint16));
++error;
}
if (badsize(sizeof(Uint32), 4)) {
if (verbose)
- printf("sizeof(Uint32) != 4, instead = %u\n", sizeof(Uint32));
+ printf("sizeof(Uint32) != 4, instead = %u\n",
+ (unsigned int)sizeof(Uint32));
++error;
}
#ifdef SDL_HAS_64BIT_TYPE
if (badsize(sizeof(Uint64), 8)) {
if (verbose)
- printf("sizeof(Uint64) != 8, instead = %u\n", sizeof(Uint64));
+ printf("sizeof(Uint64) != 8, instead = %u\n",
+ (unsigned int)sizeof(Uint64));
++error;
}
#else