diff options
| author | Jcw87 <Jcw87@users.noreply.github.com> | 2025-12-23 10:23:09 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-23 10:23:09 -0800 |
| commit | 6ef13c620a46aed5fea525699a4832a1ad6e4d1f (patch) | |
| tree | 03d9f63ec5b89e6877580edc41f5346d679a871e /src/JSystem/JAudio2/JASCalc.cpp | |
| parent | c9d0c58ffe107550835987fc37504839e9d98f05 (diff) | |
JAudio2 debug (#2990)
Diffstat (limited to 'src/JSystem/JAudio2/JASCalc.cpp')
| -rw-r--r-- | src/JSystem/JAudio2/JASCalc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/JSystem/JAudio2/JASCalc.cpp b/src/JSystem/JAudio2/JASCalc.cpp index 0578810cd6..99695d6498 100644 --- a/src/JSystem/JAudio2/JASCalc.cpp +++ b/src/JSystem/JAudio2/JASCalc.cpp @@ -322,7 +322,7 @@ f32 JASCalc::pow2(f32 x) { template <> s16 JASCalc::clamp(s32 x) { - if (std::numeric_limits<s16>::min() >= x) + if (x <= std::numeric_limits<s16>::min()) return std::numeric_limits<s16>::min(); if (x >= std::numeric_limits<s16>::max()) return std::numeric_limits<s16>::max(); |
