From f19550b3cb9b4481b4a58d1d8cc8847adb309299 Mon Sep 17 00:00:00 2001 From: goerch Date: Fri, 29 Sep 2023 19:40:24 +0200 Subject: [PATCH] Fix compiler warning --- unicode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unicode.h b/unicode.h index cc6b33df1418e6..0e70ce95a7c928 100644 --- a/unicode.h +++ b/unicode.h @@ -224,7 +224,7 @@ static const std::vector> control_ranges = { static std::string codepoint_to_utf8(uint32_t cp) { std::string result; - if (0x00 <= cp && cp <= 0x7f) { + if (/* 0x00 <= cp */ && cp <= 0x7f) { result.push_back(cp); } else if (0x80 <= cp && cp <= 0x7ff) { @@ -300,7 +300,7 @@ static std::vector codepoints_from_utf8(const std::string& utf8) { static std::vector codepoint_to_utf16(uint32_t cp) { std::vector result; - if (0x0000 <= cp && cp <= 0xffff) { + if (/* 0x0000 <= cp && */ cp <= 0xffff) { result.emplace_back(cp); } else if (0x10000 <= cp && cp <= 0x10ffff) {