Skip to content

Commit cbffcea

Browse files
committed
Handle a newly arising warning
1 parent 70b6521 commit cbffcea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/decimal/decimal32_fast.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ constexpr auto direct_init(const detail::decimal_fast32_t_components& x) noexcep
466466
{
467467
decimal_fast32_t val;
468468
val.significand_ = x.sig;
469-
val.exponent_ = static_cast<std::uint_fast8_t>(static_cast<int>(x.exp) + detail::bias_v<decimal_fast32_t>);
469+
val.exponent_ = static_cast<typename decimal_fast32_t::exponent_type>(static_cast<int>(x.exp) + detail::bias_v<decimal_fast32_t>);
470470
val.sign_ = x.sign;
471471

472472
return val;

0 commit comments

Comments
 (0)