From b9e360df7bcb8a1051d0f82d42cc6e9ae047d282 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 11 Sep 2015 23:43:17 -0400 Subject: MathUtil: Convert Clamp into a constexpr function --- Source/Core/AudioCommon/DPL2Decoder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core/AudioCommon/DPL2Decoder.cpp') diff --git a/Source/Core/AudioCommon/DPL2Decoder.cpp b/Source/Core/AudioCommon/DPL2Decoder.cpp index b1b63250e4..036f0e96c8 100644 --- a/Source/Core/AudioCommon/DPL2Decoder.cpp +++ b/Source/Core/AudioCommon/DPL2Decoder.cpp @@ -134,7 +134,8 @@ static float* DesignFIR(unsigned int *n, float* fc, float opt) // Sanity check if (*n == 0) return nullptr; - MathUtil::Clamp(&fc[0], float(0.001), float(1)); + + fc[0] = MathUtil::Clamp(fc[0], 0.001f, 1.0f); float *w = (float*)calloc(sizeof(float), *n); -- cgit v1.2.3