src/audio/SDL_audio.c
changeset 1901 f1828a500391
parent 1895 c121d94672cb
child 1903 f132024010be
--- a/src/audio/SDL_audio.c	Wed Jul 12 09:25:17 2006 +0000
+++ b/src/audio/SDL_audio.c	Thu Jul 13 08:13:02 2006 +0000
@@ -497,7 +497,7 @@
     if (desired->channels == 0) {
         env = SDL_getenv("SDL_AUDIO_CHANNELS");
         if (env) {
-            desired->channels = SDL_atoi(env);
+            desired->channels = (Uint8)SDL_atoi(env);
         }
     }
     if (desired->channels == 0) {
@@ -517,7 +517,7 @@
     if (desired->samples == 0) {
         env = SDL_getenv("SDL_AUDIO_SAMPLES");
         if (env) {
-            desired->samples = SDL_atoi(env);
+            desired->samples = (Uint16)SDL_atoi(env);
         }
     }
     if (desired->samples == 0) {