diff src/audio/SDL_audio.c @ 2130:3ee59c43d784

Fixes for compiling with Visual C++ 8.0 Express Edition
author Sam Lantinga <slouken@libsdl.org>
date Tue, 19 Jun 2007 05:53:56 +0000
parents 939420dee849
children e1a70460c354
line wrap: on
line diff
--- 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;