Fixed VC++ warnings SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Wed, 11 Jul 2007 05:55:10 +0000
branchSDL-1.2
changeset 4044 009d85e98922
parent 4043 5c890883360f
child 4045 f420bba13676
Fixed VC++ warnings
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 ) {