Skip to content

Commit 27c5aab

Browse files
authored
Fix unwanted char promotion in decimal writer with wchar_t (fmtlib#4483)
1 parent bc01935 commit 27c5aab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/fmt/format.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3429,7 +3429,7 @@ FMT_CONSTEXPR20 auto write(OutputIt out, T value) -> OutputIt {
34293429
if (s != sign::none) *it++ = Char('-');
34303430
// Insert a decimal point after the first digit and add an exponent.
34313431
it = write_significand(it, dec.significand, significand_size, 1,
3432-
has_decimal_point ? '.' : Char());
3432+
has_decimal_point ? Char('.') : Char());
34333433
*it++ = Char('e');
34343434
it = write_exponent<Char>(exp, it);
34353435
return base_iterator(out, it);

0 commit comments

Comments
 (0)