Skip to content

Commit

Permalink
warning C4456: declaration of 'num_digits' hides previous local decla…
Browse files Browse the repository at this point in the history
…ration
  • Loading branch information
chronoxor authored and vitaut committed Nov 20, 2019
1 parent 66d7746 commit d0696b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d0696b0

Please sign in to comment.