diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-09-11 23:43:17 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-09-12 01:18:28 -0400 |
| commit | b9e360df7bcb8a1051d0f82d42cc6e9ae047d282 (patch) | |
| tree | c0f7fb97777f693be94570b8f95400c983e2a250 /Source/Core/AudioCommon/DPL2Decoder.cpp | |
| parent | c5685ba53a6866cce5c32bf0c3bbbd7aa52dbf6c (diff) | |
MathUtil: Convert Clamp into a constexpr function
Diffstat (limited to 'Source/Core/AudioCommon/DPL2Decoder.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/DPL2Decoder.cpp | 3 |
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); |
