mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-20 18:29:16 +00:00
AudioMatrix/Submix: static_cast INT_MAX to float
This commit is contained in:
@@ -101,7 +101,7 @@ constexpr T ClampInt(float in) {
|
||||
|
||||
if (in < MIN)
|
||||
return MIN;
|
||||
else if (in > MAX)
|
||||
else if (in > static_cast<float>(MAX))
|
||||
return MAX;
|
||||
else
|
||||
return in;
|
||||
|
||||
Reference in New Issue
Block a user