src/audio/SDL_audiotypecvt.c
changeset 12859 6a71489fe580
parent 12858 30204ee1c7c5
child 12885 3a80ee66f621
     1.1 --- a/src/audio/SDL_audiotypecvt.c	Fri Jun 14 15:52:48 2019 -0400
     1.2 +++ b/src/audio/SDL_audiotypecvt.c	Fri Jun 14 16:52:42 2019 -0400
     1.3 @@ -1340,7 +1340,11 @@
     1.4          if (sample >= 1.0f) {
     1.5              *dst = 2147483647;
     1.6          } else if (sample <= -1.0f) {
     1.7 +            #ifdef _MSC_VER  /* !!! FIXME: bug in Visual Studio? */
     1.8 +            *dst = (-2147483647) - 1;
     1.9 +            #else
    1.10              *dst = -2147483648;
    1.11 +            #endif
    1.12          } else {
    1.13              *dst = ((Sint32)(sample * 8388607.0f)) << 8;
    1.14          }
    1.15 @@ -1368,7 +1372,11 @@
    1.16          if (sample >= 1.0f) {
    1.17              *dst = 2147483647;
    1.18          } else if (sample <= -1.0f) {
    1.19 +            #ifdef _MSC_VER  /* !!! FIXME: bug in Visual Studio? */
    1.20 +            *dst = (-2147483647) - 1;
    1.21 +            #else
    1.22              *dst = -2147483648;
    1.23 +            #endif
    1.24          } else {
    1.25              *dst = ((Sint32)(sample * 8388607.0f)) << 8;
    1.26          }