warning C4456: declaration of 'num_digits' hides previous local declaration

This commit is contained in:
Ivan Shynkarenka 2019-11-20 11:10:33 +03:00 committed by Victor Zverovich
parent 66d7746bb3
commit d0696b0aa6

View File

@ -2872,7 +2872,7 @@ void internal::basic_writer<Range>::write_fp(T value,
fspec.format == float_format::exp)) ||
specs.alt;
params.upper = fspec.upper;
int num_digits = static_cast<int>(buffer.size());
num_digits = static_cast<int>(buffer.size());
write_padded(as, grisu_writer<char_type>(buffer.data(), num_digits, exp,
params, decimal_point));
} else {