mirror of
https://github.com/boostorg/math.git
synced 2026-02-25 04:22:15 +00:00
Fix warning C4244: 'return': conversion from 'int' to 'T'
This commit is contained in:
@@ -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<T>(exp - 1);
|
||||
}
|
||||
|
||||
} // Namespace detail
|
||||
|
||||
Reference in New Issue
Block a user