diff src/audio/SDL_audio.c @ 4044:009d85e98922 SDL-1.2

Fixed VC++ warnings
author Sam Lantinga <slouken@libsdl.org>
date Wed, 11 Jul 2007 05:55:10 +0000
parents 000a99b4be87
children a1b03ba2fcd0
line wrap: on
line diff
--- 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 ) {