Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed compiler warnings on 32-bit Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 21, 2010
1 parent 45b04c9 commit 563b371
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/testplatform.c
Expand Up @@ -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
Expand Down

0 comments on commit 563b371

Please sign in to comment.