Fixed compiler warning
authorSam Lantinga <slouken@libsdl.org>
Tue, 18 Jun 2019 14:24:24 -0700
changeset 128853a80ee66f621
parent 12884 e490856ac51c
child 12886 6f8f744a09dc
Fixed compiler warning
Xcode/SDL/SDL.xcodeproj/project.pbxproj
src/audio/SDL_audiotypecvt.c
     1.1 --- a/src/audio/SDL_audiotypecvt.c	Tue Jun 18 14:15:10 2019 -0700
     1.2 +++ b/src/audio/SDL_audiotypecvt.c	Tue Jun 18 14:24:24 2019 -0700
     1.3 @@ -1340,11 +1340,7 @@
     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 @@ -1372,11 +1368,7 @@
    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          }