summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/DPL2Decoder.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2015-09-12 02:28:38 -0400
committerRyan Houdek <Sonicadvance1@gmail.com>2015-09-12 02:28:38 -0400
commitf121d7a8cd91aa93c15c75a9c35b8a374fe09d72 (patch)
tree031843465872f0cd5058a9fc93d57fdbbc4c4933 /Source/Core/AudioCommon/DPL2Decoder.cpp
parent4d5baa47723c07177a561633300ec1843cf9171f (diff)
parent3f4852a03d8cf174a90ca2c52a2d0e684ac7f7b0 (diff)
Merge pull request #3026 from lioncash/constexpr
MathUtil: Make Clamp and IsPow2 constexpr functions.
Diffstat (limited to 'Source/Core/AudioCommon/DPL2Decoder.cpp')
-rw-r--r--Source/Core/AudioCommon/DPL2Decoder.cpp3
1 files changed, 2 insertions, 1 deletions
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);