audio: Needed to fix two more instances for Visual Studio.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 21 May 2018 12:05:17 -0400
changeset 11995b34d86386ee1
parent 11994 8e094f91ddab
child 11996 77c368583942
audio: Needed to fix two more instances for Visual Studio.
src/audio/SDL_audiotypecvt.c
     1.1 --- a/src/audio/SDL_audiotypecvt.c	Mon May 21 12:00:21 2018 -0400
     1.2 +++ b/src/audio/SDL_audiotypecvt.c	Mon May 21 12:05:17 2018 -0400
     1.3 @@ -809,7 +809,7 @@
     1.4          if (sample >= 1.0f) {
     1.5              *dst = 2147483647;
     1.6          } else if (sample <= -1.0f) {
     1.7 -            *dst = -2147483648;
     1.8 +            *dst = (Sint32) -2147483648LL;
     1.9          } else {
    1.10              *dst = ((Sint32)(sample * 8388607.0f)) << 8;
    1.11          }
    1.12 @@ -837,7 +837,7 @@
    1.13          if (sample >= 1.0f) {
    1.14              *dst = 2147483647;
    1.15          } else if (sample <= -1.0f) {
    1.16 -            *dst = -2147483648;
    1.17 +            *dst = (Sint32) -2147483648LL;
    1.18          } else {
    1.19              *dst = ((Sint32)(sample * 8388607.0f)) << 8;
    1.20          }