diff options
Diffstat (limited to 'uisimulator/sdl/sound.c')
-rw-r--r-- | uisimulator/sdl/sound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uisimulator/sdl/sound.c b/uisimulator/sdl/sound.c index 4ab2fef697..23d8718411 100644 --- a/uisimulator/sdl/sound.c +++ b/uisimulator/sdl/sound.c | |||
@@ -155,7 +155,7 @@ void sdl_audio_callback(void *udata, Uint8 *stream, int len) | |||
155 | if (pcm_data_size > 0) { | 155 | if (pcm_data_size > 0) { |
156 | /* We have some PCM data to play. Play as much as we can. */ | 156 | /* We have some PCM data to play. Play as much as we can. */ |
157 | 157 | ||
158 | pcm_data_played = (((Uint32)len) > pcm_data_size) ? pcm_data_size : len; | 158 | pcm_data_played = (((Uint32)len) > pcm_data_size) ? pcm_data_size : (Uint32)len; |
159 | 159 | ||
160 | memcpy(stream, pcm_data, pcm_data_played); | 160 | memcpy(stream, pcm_data, pcm_data_played); |
161 | 161 | ||