diff --git a/include/fmt/format.h b/include/fmt/format.h index 6191592c..4c5c9f7c 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2872,7 +2872,7 @@ void internal::basic_writer::write_fp(T value, fspec.format == float_format::exp)) || specs.alt; params.upper = fspec.upper; - int num_digits = static_cast(buffer.size()); + num_digits = static_cast(buffer.size()); write_padded(as, grisu_writer(buffer.data(), num_digits, exp, params, decimal_point)); } else {