mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-12 14:46:25 +00:00
Fix casting error
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user