Skip to content

Commit 2acd1d6

Browse files
committed
Fix warning C4244: 'return': conversion from 'int' to 'T'
1 parent 548118a commit 2acd1d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/math/ccmath/logb.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ inline constexpr T logb_impl(T arg) noexcept
2929
int exp = 0;
3030
boost::math::ccmath::frexp(arg, &exp);
3131

32-
return exp - 1;
32+
return static_cast<T>(exp - 1);
3333
}
3434

3535
} // Namespace detail

0 commit comments

Comments
 (0)