audio: Fixed compiler warnings.
authorRyan C. Gordon
Tue, 06 Dec 2016 12:23:17 -0500
changeset 10682520611e8f69e
parent 10681 34b25c97b17f
child 10683 660a68fc18a5
audio: Fixed compiler warnings.
src/audio/SDL_audio.c
     1.1 --- a/src/audio/SDL_audio.c	Tue Dec 06 02:23:54 2016 -0500
     1.2 +++ b/src/audio/SDL_audio.c	Tue Dec 06 12:23:17 2016 -0500
     1.3 @@ -510,11 +510,11 @@
     1.4      /* Nothing to do unless we're set up for queueing. */
     1.5      if (device->spec.callback == SDL_BufferQueueDrainCallback) {
     1.6          current_audio.impl.LockDevice(device);
     1.7 -        retval = SDL_CountDataQueue(device->buffer_queue) + current_audio.impl.GetPendingBytes(device);
     1.8 +        retval = ((Uint32) SDL_CountDataQueue(device->buffer_queue)) + current_audio.impl.GetPendingBytes(device);
     1.9          current_audio.impl.UnlockDevice(device);
    1.10      } else if (device->spec.callback == SDL_BufferQueueFillCallback) {
    1.11          current_audio.impl.LockDevice(device);
    1.12 -        retval = SDL_CountDataQueue(device->buffer_queue);
    1.13 +        retval = (Uint32) SDL_CountDataQueue(device->buffer_queue);
    1.14          current_audio.impl.UnlockDevice(device);
    1.15      }
    1.16