diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h b/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h index 02684e4d7a..a506fc33bc 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h @@ -321,7 +321,8 @@ inline double ApproximateReciprocal(double val) } // Special case small inputs if (exponent < (895LL << 52)) - return sign ? -FLT_MAX : FLT_MAX; + return sign ? -std::numeric_limits::max() : + std::numeric_limits::max(); // Special case large inputs if (exponent >= (1149LL << 52)) return sign ? -0.0f : 0.0f;