Skip to content

Commit

Permalink
audio: Attempt to fix build on ARM versions of Visual Studio.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 14, 2019
1 parent 33b235f commit 289d109
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/audio/SDL_audiotypecvt.c
Expand Up @@ -1340,7 +1340,11 @@ 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;
}
Expand Down Expand Up @@ -1368,7 +1372,11 @@ 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;
}
Expand Down

0 comments on commit 289d109

Please sign in to comment.