Skip to content
Permalink
Browse files

Fixed VC++ warnings

  • Loading branch information
slouken committed Jul 11, 2007
1 parent 5af6eac commit 5a1a83157625ac1add453676a5a6bb1de4185dad
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/audio/SDL_audio.c
@@ -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 ) {

0 comments on commit 5a1a831

Please sign in to comment.