comparison test/testplatform.c @ 3312:c91cb3f0204e

Fixed bug #705 Sami N 2009-02-21 11:15:39 PST Patches two tests that had broken format strings in their *printf()'s.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 26 Sep 2009 09:56:26 +0000
parents 245a7d79577c
children 63d4517fc4ac
comparison
equal deleted inserted replaced
3311:0679e03ef8fa 3312:c91cb3f0204e
21 { 21 {
22 int error = 0; 22 int error = 0;
23 23
24 if (badsize(sizeof(Uint8), 1)) { 24 if (badsize(sizeof(Uint8), 1)) {
25 if (verbose) 25 if (verbose)
26 printf("sizeof(Uint8) != 1, instead = %ul\n", sizeof(Uint8)); 26 printf("sizeof(Uint8) != 1, instead = %lu\n", sizeof(Uint8));
27 ++error; 27 ++error;
28 } 28 }
29 if (badsize(sizeof(Uint16), 2)) { 29 if (badsize(sizeof(Uint16), 2)) {
30 if (verbose) 30 if (verbose)
31 printf("sizeof(Uint16) != 2, instead = %ul\n", sizeof(Uint16)); 31 printf("sizeof(Uint16) != 2, instead = %lu\n", sizeof(Uint16));
32 ++error; 32 ++error;
33 } 33 }
34 if (badsize(sizeof(Uint32), 4)) { 34 if (badsize(sizeof(Uint32), 4)) {
35 if (verbose) 35 if (verbose)
36 printf("sizeof(Uint32) != 4, instead = %ul\n", sizeof(Uint32)); 36 printf("sizeof(Uint32) != 4, instead = %lu\n", sizeof(Uint32));
37 ++error; 37 ++error;
38 } 38 }
39 #ifdef SDL_HAS_64BIT_TYPE 39 #ifdef SDL_HAS_64BIT_TYPE
40 if (badsize(sizeof(Uint64), 8)) { 40 if (badsize(sizeof(Uint64), 8)) {
41 if (verbose) 41 if (verbose)
42 printf("sizeof(Uint64) != 8, instead = %ul\n", sizeof(Uint64)); 42 printf("sizeof(Uint64) != 8, instead = %lu\n", sizeof(Uint64));
43 ++error; 43 ++error;
44 } 44 }
45 #else 45 #else
46 if (verbose) { 46 if (verbose) {
47 printf("WARNING: No 64-bit datatype on this platform\n"); 47 printf("WARNING: No 64-bit datatype on this platform\n");