Skip to content

Commit

Permalink
audio: Needed to fix two more instances for Visual Studio.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 21, 2018
1 parent 0ad4b0b commit 101544d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audio/SDL_audiotypecvt.c
Expand Up @@ -809,7 +809,7 @@ SDL_Convert_F32_to_S32_SSE2(SDL_AudioCVT *cvt, SDL_AudioFormat format)
if (sample >= 1.0f) {
*dst = 2147483647;
} else if (sample <= -1.0f) {
*dst = -2147483648;
*dst = (Sint32) -2147483648LL;
} else {
*dst = ((Sint32)(sample * 8388607.0f)) << 8;
}
Expand Down Expand Up @@ -837,7 +837,7 @@ SDL_Convert_F32_to_S32_SSE2(SDL_AudioCVT *cvt, SDL_AudioFormat format)
if (sample >= 1.0f) {
*dst = 2147483647;
} else if (sample <= -1.0f) {
*dst = -2147483648;
*dst = (Sint32) -2147483648LL;
} else {
*dst = ((Sint32)(sample * 8388607.0f)) << 8;
}
Expand Down

0 comments on commit 101544d

Please sign in to comment.