src/audio/SDL_audio.c
changeset 2130 3ee59c43d784
parent 2076 939420dee849
child 2141 e1a70460c354
--- a/src/audio/SDL_audio.c	Sat Jun 16 15:32:04 2007 +0000
+++ b/src/audio/SDL_audio.c	Tue Jun 19 05:53:56 2007 +0000
@@ -555,7 +555,7 @@
     switch (orig->channels) {
     case 0:{
             const char *env = SDL_getenv("SDL_AUDIO_CHANNELS");
-            if ((!env) || ((prepared->channels = SDL_atoi(env)) == 0)) {
+            if ((!env) || ((prepared->channels = (Uint8)SDL_atoi(env)) == 0)) {
                 prepared->channels = 2; /* a reasonable default */
             }
             break;