mirror of
https://github.com/AxioDL/amuse.git
synced 2025-05-28 18:21:27 +00:00
Fix casting error
This commit is contained in:
parent
5112228abd
commit
6c7094f6fb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user