diff --git a/include/boost/math/ccmath/logb.hpp b/include/boost/math/ccmath/logb.hpp index 1b0c165bc..4df96dd44 100644 --- a/include/boost/math/ccmath/logb.hpp +++ b/include/boost/math/ccmath/logb.hpp @@ -29,7 +29,7 @@ inline constexpr T logb_impl(T arg) noexcept int exp = 0; boost::math::ccmath::frexp(arg, &exp); - return exp - 1; + return static_cast(exp - 1); } } // Namespace detail