@@ -2534,7 +2534,7 @@ FMT_CONSTEXPR20 auto write_fixed(OutputIt out, const DecimalFP& f,
25342534 auto grouping = Grouping (loc, specs.localized ());
25352535 size += grouping.count_separators (exp);
25362536 return write_padded<Char, align::right>(
2537- out, specs, to_unsigned (size), [&](iterator it) {
2537+ out, specs, static_cast < size_t > (size), [&](iterator it) {
25382538 if (s != sign::none) *it++ = detail::getsign<Char>(s);
25392539 it = write_significand (it, f.significand , significand_size, exp,
25402540 decimal_point, grouping);
@@ -2550,7 +2550,7 @@ FMT_CONSTEXPR20 auto write_fixed(OutputIt out, const DecimalFP& f,
25502550 bool pointy = num_zeros != 0 || significand_size != 0 || specs.alt ();
25512551 size += 1 + (pointy ? 1 : 0 ) + num_zeros;
25522552 return write_padded<Char, align::right>(
2553- out, specs, to_unsigned (size), [&](iterator it) {
2553+ out, specs, static_cast < size_t > (size), [&](iterator it) {
25542554 if (s != sign::none) *it++ = detail::getsign<Char>(s);
25552555 *it++ = Char (' 0' );
25562556 if (!pointy) return it;
@@ -2594,7 +2594,7 @@ FMT_CONSTEXPR20 auto do_write_float(OutputIt out, const DecimalFP& f,
25942594 *it++ = Char (exp_char);
25952595 return write_exponent<Char>(exp, it);
25962596 };
2597- auto usize = to_unsigned (size);
2597+ size_t usize = static_cast < size_t > (size);
25982598 return specs.width > 0
25992599 ? write_padded<Char, align::right>(out, specs, usize, write)
26002600 : base_iterator (out, write (reserve (out, usize)));
0 commit comments