From eb34f7f54f6c15fe24d7eed4fa3dc158cbad5dbb Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 9 Sep 2024 00:35:12 +1000 Subject: [PATCH] StringUtil: Fix typo --- src/common/string_util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/string_util.h b/src/common/string_util.h index ff2fdf8c0..8af21b02f 100644 --- a/src/common/string_util.h +++ b/src/common/string_util.h @@ -210,8 +210,8 @@ std::string EncodeHex(const u8* data, int length); template ALWAYS_INLINE static bool IsHexDigit(T ch) { - return ((ch >= static_cast('a') && ch <= static_cast('a')) || - (ch >= static_cast('A') && ch <= static_cast('Z')) || + return ((ch >= static_cast('a') && ch <= static_cast('f')) || + (ch >= static_cast('A') && ch <= static_cast('F')) || (ch >= static_cast('0') && ch <= static_cast('9'))); }