We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 345d793 commit d8ca1f1Copy full SHA for d8ca1f1
include/behaviortree_cpp/utils/convert_impl.hpp
@@ -101,7 +101,7 @@ inline void checkTruncation(const From& from)
101
}
102
103
// Handle floating point to integer
104
- if constexpr(std::is_floating_point_v<From> && std::is_integral_v<To>)
+ else if constexpr(std::is_floating_point_v<From> && std::is_integral_v<To>)
105
{
106
if(from > static_cast<From>(std::numeric_limits<To>::max()) ||
107
from < static_cast<From>(std::numeric_limits<To>::lowest()) ||
0 commit comments