Fix casting error

This commit is contained in:
Phillip Stephens 2020-04-22 03:41:35 -07:00
parent 5112228abd
commit 6c7094f6fb
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ constexpr T ClampFull(float in) noexcept {
if (in < MIN)
return MIN;
else if (in > MAX)
else if (in > static_cast<float>(MAX))
return MAX;
else
return in;