Skip to content

Commit

Permalink
Fix warning C4244: 'return': conversion from 'int' to 'T'
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Oct 29, 2022
1 parent 548118a commit 2acd1d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/math/ccmath/logb.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2acd1d6

Please sign in to comment.