mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Fixed compiler warning
This commit is contained in:
parent
99abcbb2bc
commit
14e8b93e37
0
Xcode/SDL/SDL.xcodeproj/project.pbxproj
Normal file → Executable file
0
Xcode/SDL/SDL.xcodeproj/project.pbxproj
Normal file → Executable file
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user