Fixed VC++ warnings

--HG--
branch : SDL-1.2
This commit is contained in:
Sam Lantinga
2007-07-11 05:55:10 +00:00
parent 323e531569
commit d6ee8b3ea7

View File

@@ -437,7 +437,7 @@ int SDL_OpenAudio(SDL_AudioSpec *desired, SDL_AudioSpec *obtained)
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 @@ int SDL_OpenAudio(SDL_AudioSpec *desired, SDL_AudioSpec *obtained)
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 ) {