Skip to content

Commit d55f599

Browse files
committed
Fix MS platform conversion error
1 parent 2f3b451 commit d55f599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/decimal/dpd_conversion.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)