# HG changeset patch # User Sam Lantinga # Date 1184133310 0 # Node ID 009d85e98922c26fedb9b949ba7c98cdcc1c51ac # Parent 5c890883360f45b5fc10c2adce48af1899428c2b Fixed VC++ warnings diff -r 5c890883360f -r 009d85e98922 src/audio/SDL_audio.c --- a/src/audio/SDL_audio.c Wed Jul 11 05:46:04 2007 +0000 +++ b/src/audio/SDL_audio.c Wed Jul 11 05:55:10 2007 +0000 @@ -437,7 +437,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 ) { @@ -457,7 +457,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 ) {