# HG changeset patch # User Sam Lantinga # Date 1264058531 0 # Node ID 8e5186a99af404b1ad5b95fcd64ffb60f0cd0242 # Parent d87db9cf6a31f543b9c46d1013e89d00f27aae1b Fixed compile warning on 64-bit Mac OS X diff -r d87db9cf6a31 -r 8e5186a99af4 test/testplatform.c --- a/test/testplatform.c Thu Jan 21 07:10:22 2010 +0000 +++ b/test/testplatform.c Thu Jan 21 07:22:11 2010 +0000 @@ -24,23 +24,27 @@ 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