From c023187548327f880e9b3b677ba4f266f2b30c82 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 6 Dec 2016 12:23:17 -0500 Subject: [PATCH] audio: Fixed compiler warnings. --- src/audio/SDL_audio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c index 4ff540043..7262d0bf4 100644 --- a/src/audio/SDL_audio.c +++ b/src/audio/SDL_audio.c @@ -510,11 +510,11 @@ SDL_GetQueuedAudioSize(SDL_AudioDeviceID devid) /* Nothing to do unless we're set up for queueing. */ if (device->spec.callback == SDL_BufferQueueDrainCallback) { current_audio.impl.LockDevice(device); - retval = SDL_CountDataQueue(device->buffer_queue) + current_audio.impl.GetPendingBytes(device); + retval = ((Uint32) SDL_CountDataQueue(device->buffer_queue)) + current_audio.impl.GetPendingBytes(device); current_audio.impl.UnlockDevice(device); } else if (device->spec.callback == SDL_BufferQueueFillCallback) { current_audio.impl.LockDevice(device); - retval = SDL_CountDataQueue(device->buffer_queue); + retval = (Uint32) SDL_CountDataQueue(device->buffer_queue); current_audio.impl.UnlockDevice(device); }