diff test/common.c @ 2179:8b76cc268771

Visual C++ compiler warning fixes
author Sam Lantinga <slouken@libsdl.org>
date Thu, 12 Jul 2007 06:53:20 +0000
parents 8f37b91f2e3e
children 2032348afed1
line wrap: on
line diff
--- a/test/common.c	Thu Jul 12 06:31:36 2007 +0000
+++ b/test/common.c	Thu Jul 12 06:53:20 2007 +0000
@@ -245,7 +245,7 @@
         if (!argv[index]) {
             return -1;
         }
-        state->audiospec.channels = SDL_atoi(argv[index]);
+        state->audiospec.channels = (Uint8)SDL_atoi(argv[index]);
         return 2;
     }
     if (SDL_strcasecmp(argv[index], "--samples") == 0) {
@@ -253,7 +253,7 @@
         if (!argv[index]) {
             return -1;
         }
-        state->audiospec.samples = SDL_atoi(argv[index]);
+        state->audiospec.samples = (Uint16)SDL_atoi(argv[index]);
         return 2;
     }
     if ((SDL_strcasecmp(argv[index], "-h") == 0)
@@ -498,7 +498,7 @@
     fprintf(stderr, ")\n");
 
     fprintf(stderr, "    Texture formats (%d): ", info->num_texture_formats);
-    for (i = 0; i < info->num_texture_formats; ++i) {
+    for (i = 0; i < (int)info->num_texture_formats; ++i) {
         if (i > 0) {
             fprintf(stderr, ", ");
         }