test/common.c
changeset 2179 8b76cc268771
parent 2174 8f37b91f2e3e
child 2185 2032348afed1
     1.1 --- a/test/common.c	Thu Jul 12 06:31:36 2007 +0000
     1.2 +++ b/test/common.c	Thu Jul 12 06:53:20 2007 +0000
     1.3 @@ -245,7 +245,7 @@
     1.4          if (!argv[index]) {
     1.5              return -1;
     1.6          }
     1.7 -        state->audiospec.channels = SDL_atoi(argv[index]);
     1.8 +        state->audiospec.channels = (Uint8)SDL_atoi(argv[index]);
     1.9          return 2;
    1.10      }
    1.11      if (SDL_strcasecmp(argv[index], "--samples") == 0) {
    1.12 @@ -253,7 +253,7 @@
    1.13          if (!argv[index]) {
    1.14              return -1;
    1.15          }
    1.16 -        state->audiospec.samples = SDL_atoi(argv[index]);
    1.17 +        state->audiospec.samples = (Uint16)SDL_atoi(argv[index]);
    1.18          return 2;
    1.19      }
    1.20      if ((SDL_strcasecmp(argv[index], "-h") == 0)
    1.21 @@ -498,7 +498,7 @@
    1.22      fprintf(stderr, ")\n");
    1.23  
    1.24      fprintf(stderr, "    Texture formats (%d): ", info->num_texture_formats);
    1.25 -    for (i = 0; i < info->num_texture_formats; ++i) {
    1.26 +    for (i = 0; i < (int)info->num_texture_formats; ++i) {
    1.27          if (i > 0) {
    1.28              fprintf(stderr, ", ");
    1.29          }