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)
|
if (in < MIN)
|
||||||
return MIN;
|
return MIN;
|
||||||
else if (in > MAX)
|
else if (in > static_cast<float>(MAX))
|
||||||
return MAX;
|
return MAX;
|
||||||
else
|
else
|
||||||
return in;
|
return in;
|
||||||
|
|
Loading…
Reference in New Issue