mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-03 04:26:33 -04:00
Fix unwanted char promotion in decimal writer with wchar_t (#4483)
This commit is contained in:
parent
bc0193535a
commit
27c5aab349
@ -3429,7 +3429,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt {
|
||||
if (s != sign::none) *it++ = Char('-');
|
||||
// Insert a decimal point after the first digit and add an exponent.
|
||||
it = write_significand(it, dec.significand, significand_size, 1,
|
||||
has_decimal_point ? '.' : Char());
|
||||
has_decimal_point ? Char('.') : Char());
|
||||
*it++ = Char('e');
|
||||
it = write_exponent<Char>(exp, it);
|
||||
return base_iterator(out, it);
|
||||
|
Loading…
x
Reference in New Issue
Block a user