mirror of https://github.com/AxioDL/amuse.git
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…
Reference in New Issue