From 6c7094f6fb7949536a85b85e4c87ecebd7b83fcf Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Wed, 22 Apr 2020 03:41:35 -0700 Subject: [PATCH] Fix casting error --- include/amuse/Common.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/amuse/Common.hpp b/include/amuse/Common.hpp index cf4d0dc..ca38dea 100644 --- a/include/amuse/Common.hpp +++ b/include/amuse/Common.hpp @@ -378,7 +378,7 @@ constexpr T ClampFull(float in) noexcept { if (in < MIN) return MIN; - else if (in > MAX) + else if (in > static_cast(MAX)) return MAX; else return in;