From 6348dba85d20011ded062a8b1da82ae807cbd134 Mon Sep 17 00:00:00 2001 From: FutureRave Date: Tue, 7 Mar 2023 14:01:57 +0000 Subject: [PATCH] [General]: Correct usage of isdigit --- src/Components/Modules/Localization.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/Localization.cpp b/src/Components/Modules/Localization.cpp index 15001840..cdf8d8d8 100644 --- a/src/Components/Modules/Localization.cpp +++ b/src/Components/Modules/Localization.cpp @@ -246,7 +246,7 @@ namespace Components for (i = 0; i < iTokenLen - 2; ++i) { - if (!std::strncmp(&szTokenBuf[i], "&&", 2) && std::isdigit(szTokenBuf[i + 2])) + if (!std::strncmp(&szTokenBuf[i], "&&", 2) && std::isdigit(static_cast(szTokenBuf[i + 2]))) { if (bInsertEnabled) { @@ -268,7 +268,7 @@ namespace Components { for (i = 0; i < iLen - 2; ++i) { - if (!std::strncmp(&pszString[i], "&&", 2) && std::isdigit(pszString[i + 2])) + if (!std::strncmp(&pszString[i], "&&", 2) && std::isdigit(static_cast(pszString[i + 2]))) { const auto digit = pszString[i + 2] - 48; if (!digit)