mirror of
https://github.com/fmtlib/fmt.git
synced 2026-02-11 20:59:58 +08:00
[fix] #4565 When using MSVC to compile v12.0.0, many compilation warnings are generated
This commit is contained in:
parent
8db24c0ea9
commit
91ec31bc31
@ -2506,7 +2506,7 @@ FMT_CONSTEXPR20 auto write_fixed(OutputIt out, const DecimalFP& f,
|
|||||||
auto grouping = Grouping(loc, specs.localized());
|
auto grouping = Grouping(loc, specs.localized());
|
||||||
size += grouping.count_separators(exp);
|
size += grouping.count_separators(exp);
|
||||||
return write_padded<Char, align::right>(
|
return write_padded<Char, align::right>(
|
||||||
out, specs, to_unsigned(size), [&](iterator it) {
|
out, specs, tatic_cast<size_t>(size), [&](iterator it) {
|
||||||
if (s != sign::none) *it++ = detail::getsign<Char>(s);
|
if (s != sign::none) *it++ = detail::getsign<Char>(s);
|
||||||
it = write_significand<Char>(it, f.significand, significand_size,
|
it = write_significand<Char>(it, f.significand, significand_size,
|
||||||
f.exponent, grouping);
|
f.exponent, grouping);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user