mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 06:21:00 +00:00
warning C4456: declaration of 'num_digits' hides previous local declaration
This commit is contained in:
parent
66d7746bb3
commit
d0696b0aa6
@ -2872,7 +2872,7 @@ void internal::basic_writer<Range>::write_fp(T value,
|
|||||||
fspec.format == float_format::exp)) ||
|
fspec.format == float_format::exp)) ||
|
||||||
specs.alt;
|
specs.alt;
|
||||||
params.upper = fspec.upper;
|
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,
|
write_padded(as, grisu_writer<char_type>(buffer.data(), num_digits, exp,
|
||||||
params, decimal_point));
|
params, decimal_point));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user