From 2a2e4c58016689463fe03d59c6e5c320cb4de67f Mon Sep 17 00:00:00 2001 From: Michael Winterberg Date: Wed, 19 May 2021 15:14:30 -0700 Subject: [PATCH] addressing nits. --- include/fmt/core.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 9875c3be..1f79b50e 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -395,11 +395,11 @@ FMT_CONSTEXPR typename std::make_unsigned::type to_unsigned(Int value) { FMT_MSC_WARNING(suppress : 4566) constexpr unsigned char micro[] = "\u00B5"; constexpr bool is_utf8() { - // avoid buggy sign extensions in MSVC's constant evaluation mode + // Avoid buggy sign extensions in MSVC's constant evaluation mode. // https://developercommunity.visualstudio.com/t/C-difference-in-behavior-for-unsigned/1233612 using uchar = unsigned char; - return FMT_UNICODE || (sizeof(micro) == 3 && uchar{micro[0]} == 0xC2 && - uchar{micro[1]} == 0xB5); + return FMT_UNICODE || (sizeof(micro) == 3 && uchar(micro[0]) == 0xC2 && + uchar(micro[1]) == 0xB5); } FMT_END_DETAIL_NAMESPACE