Fixed compile warning on 64-bit Mac OS X
authorSam Lantinga <slouken@libsdl.org>
Thu, 21 Jan 2010 07:22:11 +0000
changeset 36878e5186a99af4
parent 3686 d87db9cf6a31
child 3688 6512cba48440
Fixed compile warning on 64-bit Mac OS X
test/testplatform.c
     1.1 --- a/test/testplatform.c	Thu Jan 21 07:10:22 2010 +0000
     1.2 +++ b/test/testplatform.c	Thu Jan 21 07:22:11 2010 +0000
     1.3 @@ -24,23 +24,27 @@
     1.4  
     1.5      if (badsize(sizeof(Uint8), 1)) {
     1.6          if (verbose)
     1.7 -            printf("sizeof(Uint8) != 1, instead = %u\n", sizeof(Uint8));
     1.8 +            printf("sizeof(Uint8) != 1, instead = %u\n",
     1.9 +                   (unsigned int)sizeof(Uint8));
    1.10          ++error;
    1.11      }
    1.12      if (badsize(sizeof(Uint16), 2)) {
    1.13          if (verbose)
    1.14 -            printf("sizeof(Uint16) != 2, instead = %u\n", sizeof(Uint16));
    1.15 +            printf("sizeof(Uint16) != 2, instead = %u\n",
    1.16 +                   (unsigned int)sizeof(Uint16));
    1.17          ++error;
    1.18      }
    1.19      if (badsize(sizeof(Uint32), 4)) {
    1.20          if (verbose)
    1.21 -            printf("sizeof(Uint32) != 4, instead = %u\n", sizeof(Uint32));
    1.22 +            printf("sizeof(Uint32) != 4, instead = %u\n",
    1.23 +                   (unsigned int)sizeof(Uint32));
    1.24          ++error;
    1.25      }
    1.26  #ifdef SDL_HAS_64BIT_TYPE
    1.27      if (badsize(sizeof(Uint64), 8)) {
    1.28          if (verbose)
    1.29 -            printf("sizeof(Uint64) != 8, instead = %u\n", sizeof(Uint64));
    1.30 +            printf("sizeof(Uint64) != 8, instead = %u\n",
    1.31 +                   (unsigned int)sizeof(Uint64));
    1.32          ++error;
    1.33      }
    1.34  #else