Navigation Menu

Skip to content

Commit

Permalink
Fixed VC++ warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 11, 2007
1 parent 5af6eac commit 5a1a831
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audio/SDL_audio.c
Expand Up @@ -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 ) {
Expand All @@ -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 ) {
Expand Down

0 comments on commit 5a1a831

Please sign in to comment.