2
0
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:
Matt Borland
2022-10-27 20:47:09 -07:00
parent 548118a735
commit 2acd1d62bf

View File

@@ -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