Mercurial > sdl-ios-xcode
comparison test/testplatform.c @ 3684:cc564f08884f
Fixed compiler warnings on 32-bit Linux
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 21 Jan 2010 05:49:41 +0000 |
parents | bc50cd16bb07 |
children | 8e5186a99af4 |
comparison
equal
deleted
inserted
replaced
3683:4c5ab6841fdc | 3684:cc564f08884f |
---|---|
22 { | 22 { |
23 int error = 0; | 23 int error = 0; |
24 | 24 |
25 if (badsize(sizeof(Uint8), 1)) { | 25 if (badsize(sizeof(Uint8), 1)) { |
26 if (verbose) | 26 if (verbose) |
27 printf("sizeof(Uint8) != 1, instead = %lu\n", sizeof(Uint8)); | 27 printf("sizeof(Uint8) != 1, instead = %u\n", sizeof(Uint8)); |
28 ++error; | 28 ++error; |
29 } | 29 } |
30 if (badsize(sizeof(Uint16), 2)) { | 30 if (badsize(sizeof(Uint16), 2)) { |
31 if (verbose) | 31 if (verbose) |
32 printf("sizeof(Uint16) != 2, instead = %lu\n", sizeof(Uint16)); | 32 printf("sizeof(Uint16) != 2, instead = %u\n", sizeof(Uint16)); |
33 ++error; | 33 ++error; |
34 } | 34 } |
35 if (badsize(sizeof(Uint32), 4)) { | 35 if (badsize(sizeof(Uint32), 4)) { |
36 if (verbose) | 36 if (verbose) |
37 printf("sizeof(Uint32) != 4, instead = %lu\n", sizeof(Uint32)); | 37 printf("sizeof(Uint32) != 4, instead = %u\n", sizeof(Uint32)); |
38 ++error; | 38 ++error; |
39 } | 39 } |
40 #ifdef SDL_HAS_64BIT_TYPE | 40 #ifdef SDL_HAS_64BIT_TYPE |
41 if (badsize(sizeof(Uint64), 8)) { | 41 if (badsize(sizeof(Uint64), 8)) { |
42 if (verbose) | 42 if (verbose) |
43 printf("sizeof(Uint64) != 8, instead = %lu\n", sizeof(Uint64)); | 43 printf("sizeof(Uint64) != 8, instead = %u\n", sizeof(Uint64)); |
44 ++error; | 44 ++error; |
45 } | 45 } |
46 #else | 46 #else |
47 if (verbose) { | 47 if (verbose) { |
48 printf("WARNING: No 64-bit datatype on this platform\n"); | 48 printf("WARNING: No 64-bit datatype on this platform\n"); |