From 2a0cd77eef70d3bed0e4dac937fbc44a6cbb8bf3 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Fri, 5 Jun 2015 19:34:39 +0200 Subject: [PATCH] spu2x: avoid 64 bits compilation issue Reported by 3kinox Solution given by unknownbrackets --- plugins/spu2-x/src/ADSR.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/spu2-x/src/ADSR.cpp b/plugins/spu2-x/src/ADSR.cpp index 0e902bd531..38ffbbf923 100644 --- a/plugins/spu2-x/src/ADSR.cpp +++ b/plugins/spu2-x/src/ADSR.cpp @@ -34,7 +34,7 @@ void InitADSR() // INIT ADSR else rate <<= shift; - PsxRates[i] = (int)std::min( rate, 0x3fffffffLL ); + PsxRates[i] = (int)std::min( rate, (s64)0x3fffffffLL ); } }