From 9fca1ec086e50d346c45683c0db827e523bdb1f5 Mon Sep 17 00:00:00 2001 From: "Hans-Martin B. Jensen" Date: Sat, 13 Jan 2024 16:36:32 +0100 Subject: [PATCH] Review: use to_ascii instead --- include/fmt/std.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/std.h b/include/fmt/std.h index c3ca0828..ff81da1a 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -120,7 +120,7 @@ template struct formatter { format_specs specs_; detail::arg_ref width_ref_; bool debug_ = false; - Char path_type_ = 0; + char path_type_ = 0; public: FMT_CONSTEXPR void set_debug_format(bool set = true) { debug_ = set; } @@ -137,7 +137,7 @@ template struct formatter { debug_ = true; ++it; } - if (it != end && (*it == 'g')) path_type_ = *it++; + if (it != end && (*it == 'g')) path_type_ = detail::to_ascii(*it++); return it; }