Commit 5392fa23 authored by Sam Lantinga's avatar Sam Lantinga

Fixed compile warning on 64-bit Mac OS X

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404440
parent 21861825
...@@ -24,23 +24,27 @@ TestTypes(SDL_bool verbose) ...@@ -24,23 +24,27 @@ TestTypes(SDL_bool verbose)
if (badsize(sizeof(Uint8), 1)) { if (badsize(sizeof(Uint8), 1)) {
if (verbose) if (verbose)
printf("sizeof(Uint8) != 1, instead = %u\n", sizeof(Uint8)); printf("sizeof(Uint8) != 1, instead = %u\n",
(unsigned int)sizeof(Uint8));
++error; ++error;
} }
if (badsize(sizeof(Uint16), 2)) { if (badsize(sizeof(Uint16), 2)) {
if (verbose) if (verbose)
printf("sizeof(Uint16) != 2, instead = %u\n", sizeof(Uint16)); printf("sizeof(Uint16) != 2, instead = %u\n",
(unsigned int)sizeof(Uint16));
++error; ++error;
} }
if (badsize(sizeof(Uint32), 4)) { if (badsize(sizeof(Uint32), 4)) {
if (verbose) if (verbose)
printf("sizeof(Uint32) != 4, instead = %u\n", sizeof(Uint32)); printf("sizeof(Uint32) != 4, instead = %u\n",
(unsigned int)sizeof(Uint32));
++error; ++error;
} }
#ifdef SDL_HAS_64BIT_TYPE #ifdef SDL_HAS_64BIT_TYPE
if (badsize(sizeof(Uint64), 8)) { if (badsize(sizeof(Uint64), 8)) {
if (verbose) if (verbose)
printf("sizeof(Uint64) != 8, instead = %u\n", sizeof(Uint64)); printf("sizeof(Uint64) != 8, instead = %u\n",
(unsigned int)sizeof(Uint64));
++error; ++error;
} }
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment