From 101544d6f038234d4e7a421c6a6bc853695760db Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 21 May 2018 12:05:17 -0400 Subject: [PATCH] audio: Needed to fix two more instances for Visual Studio. --- src/audio/SDL_audiotypecvt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio/SDL_audiotypecvt.c b/src/audio/SDL_audiotypecvt.c index 38dc5efbd..15246372c 100644 --- a/src/audio/SDL_audiotypecvt.c +++ b/src/audio/SDL_audiotypecvt.c @@ -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; } @@ -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; }