Fixed compiler warnings on 32-bit Linux

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404437
This commit is contained in:
Sam Lantinga 2010-01-21 05:49:41 +00:00
parent 37d1b35d66
commit d7496843fc

View file

@ -24,23 +24,23 @@ TestTypes(SDL_bool verbose)
if (badsize(sizeof(Uint8), 1)) {
if (verbose)
printf("sizeof(Uint8) != 1, instead = %lu\n", sizeof(Uint8));
printf("sizeof(Uint8) != 1, instead = %u\n", sizeof(Uint8));
++error;
}
if (badsize(sizeof(Uint16), 2)) {
if (verbose)
printf("sizeof(Uint16) != 2, instead = %lu\n", sizeof(Uint16));
printf("sizeof(Uint16) != 2, instead = %u\n", sizeof(Uint16));
++error;
}
if (badsize(sizeof(Uint32), 4)) {
if (verbose)
printf("sizeof(Uint32) != 4, instead = %lu\n", sizeof(Uint32));
printf("sizeof(Uint32) != 4, instead = %u\n", sizeof(Uint32));
++error;
}
#ifdef SDL_HAS_64BIT_TYPE
if (badsize(sizeof(Uint64), 8)) {
if (verbose)
printf("sizeof(Uint64) != 8, instead = %lu\n", sizeof(Uint64));
printf("sizeof(Uint64) != 8, instead = %u\n", sizeof(Uint64));
++error;
}
#else