diff --git a/Source/Core/Core/DSP/DSPAccelerator.cpp b/Source/Core/Core/DSP/DSPAccelerator.cpp index 850f210b3f..1a8cbf2671 100644 --- a/Source/Core/Core/DSP/DSPAccelerator.cpp +++ b/Source/Core/Core/DSP/DSPAccelerator.cpp @@ -120,8 +120,8 @@ u16 ReadAccelerator(u32 start_address, u32 end_address, u32* current_address, u1 if (temp >= 8) temp -= 16; - val = (scale * temp) + ((0x400 + coef1 * *yn1 + coef2 * *yn2) >> 11); - val = MathUtil::Clamp(val, -0x7FFF, 0x7FFF); + s32 val32 = (scale * temp) + ((0x400 + coef1 * *yn1 + coef2 * *yn2) >> 11); + val = static_cast(MathUtil::Clamp(val32, -0x7FFF, 0x7FFF)); *yn2 = *yn1; *yn1 = val;