From 14e8b93e370ed1a24a2d3958d833b95197faa52b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 18 Jun 2019 14:24:24 -0700 Subject: [PATCH] Fixed compiler warning --- Xcode/SDL/SDL.xcodeproj/project.pbxproj | 0 src/audio/SDL_audiotypecvt.c | 8 -------- 2 files changed, 8 deletions(-) mode change 100644 => 100755 Xcode/SDL/SDL.xcodeproj/project.pbxproj diff --git a/Xcode/SDL/SDL.xcodeproj/project.pbxproj b/Xcode/SDL/SDL.xcodeproj/project.pbxproj old mode 100644 new mode 100755 diff --git a/src/audio/SDL_audiotypecvt.c b/src/audio/SDL_audiotypecvt.c index 309484b44..66c20812e 100644 --- a/src/audio/SDL_audiotypecvt.c +++ b/src/audio/SDL_audiotypecvt.c @@ -1340,11 +1340,7 @@ SDL_Convert_F32_to_S32_NEON(SDL_AudioCVT *cvt, SDL_AudioFormat format) if (sample >= 1.0f) { *dst = 2147483647; } else if (sample <= -1.0f) { - #ifdef _MSC_VER /* !!! FIXME: bug in Visual Studio? */ *dst = (-2147483647) - 1; - #else - *dst = -2147483648; - #endif } else { *dst = ((Sint32)(sample * 8388607.0f)) << 8; } @@ -1372,11 +1368,7 @@ SDL_Convert_F32_to_S32_NEON(SDL_AudioCVT *cvt, SDL_AudioFormat format) if (sample >= 1.0f) { *dst = 2147483647; } else if (sample <= -1.0f) { - #ifdef _MSC_VER /* !!! FIXME: bug in Visual Studio? */ *dst = (-2147483647) - 1; - #else - *dst = -2147483648; - #endif } else { *dst = ((Sint32)(sample * 8388607.0f)) << 8; }