From 27c5aab34911386f8cd285f53e1139ef552ae46c Mon Sep 17 00:00:00 2001 From: Miuna <809711+Mishura4@users.noreply.github.com> Date: Tue, 1 Jul 2025 10:03:57 -0400 Subject: [PATCH] Fix unwanted char promotion in decimal writer with wchar_t (#4483) --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 1bf44f99..3f8507f7 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -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(exp, it); return base_iterator(out, it);