From 2acd1d62bfa2af2da00d111ffd48fa2b1db6ace1 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Thu, 27 Oct 2022 20:47:09 -0700 Subject: [PATCH] Fix warning C4244: 'return': conversion from 'int' to 'T' --- include/boost/math/ccmath/logb.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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