Fix unwanted char promotion in decimal writer with wchar_t (#4483)

This commit is contained in:
Miuna 2025-07-01 10:03:57 -04:00 committed by GitHub
parent bc0193535a
commit 27c5aab349
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);