Fixed VC++ warnings SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Wed, 11 Jul 2007 05:55:10 +0000
branchSDL-1.2
changeset 4044009d85e98922
parent 4043 5c890883360f
child 4045 f420bba13676
Fixed VC++ warnings
src/audio/SDL_audio.c
     1.1 --- a/src/audio/SDL_audio.c	Wed Jul 11 05:46:04 2007 +0000
     1.2 +++ b/src/audio/SDL_audio.c	Wed Jul 11 05:55:10 2007 +0000
     1.3 @@ -437,7 +437,7 @@
     1.4  	if ( desired->channels == 0 ) {
     1.5  		env = SDL_getenv("SDL_AUDIO_CHANNELS");
     1.6  		if ( env ) {
     1.7 -			desired->channels = SDL_atoi(env);
     1.8 +			desired->channels = (Uint8)SDL_atoi(env);
     1.9  		}
    1.10  	}
    1.11  	if ( desired->channels == 0 ) {
    1.12 @@ -457,7 +457,7 @@
    1.13  	if ( desired->samples == 0 ) {
    1.14  		env = SDL_getenv("SDL_AUDIO_SAMPLES");
    1.15  		if ( env ) {
    1.16 -			desired->samples = SDL_atoi(env);
    1.17 +			desired->samples = (Uint16)SDL_atoi(env);
    1.18  		}
    1.19  	}
    1.20  	if ( desired->samples == 0 ) {