Mercurial > sdl-ios-xcode
changeset 4044:009d85e98922 SDL-1.2
Fixed VC++ warnings
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 11 Jul 2007 05:55:10 +0000 |
parents | 5c890883360f |
children | f420bba13676 |
files | src/audio/SDL_audio.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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 ) {