File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -730,7 +730,7 @@ constexpr auto to_dpd_d128(DecimalType val) noexcept
730730 }
731731
732732 constexpr int num_digits {std::numeric_limits<DecimalType>::digits10};
733- std::uint8_t d[num_digits] {};
733+ std::uint8_t d[static_cast <std:: size_t >( num_digits) ] {};
734734 auto temp_sig {significand};
735735 for (int i = num_digits - 1 ; i >= 0 ; --i)
736736 {
@@ -880,7 +880,7 @@ constexpr auto from_dpd_d128(detail::uint128 dpd) noexcept
880880
881881 // We can now decode the remainder of the significand to recover the value
882882 constexpr auto num_digits {std::numeric_limits<DecimalType>::digits10};
883- std::uint8_t digits[num_digits] {};
883+ std::uint8_t digits[static_cast <std:: size_t >( num_digits) ] {};
884884 digits[0 ] = static_cast <std::uint8_t >(d0);
885885 for (int i = num_digits - 1 ; i > 0 ; i -= 3 )
886886 {
You can’t perform that action at this time.
0 commit comments