From 5bfccfbfff48b5df9d83b05b64d266802088b8b3 Mon Sep 17 00:00:00 2001 From: Edo Date: Sun, 10 Apr 2022 04:04:14 +0200 Subject: [PATCH] [String] Port changes from S1x --- src/utils/string.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/string.cpp b/src/utils/string.cpp index 9180cf0..e22f52d 100644 --- a/src/utils/string.cpp +++ b/src/utils/string.cpp @@ -18,9 +18,9 @@ namespace utils::string std::string to_lower(std::string text) { - std::transform(text.begin(), text.end(), text.begin(), [](const char input) + std::transform(text.begin(), text.end(), text.begin(), [](const unsigned char input) { - return CHAR(tolower(input)); + return static_cast(std::tolower(input)); }); return text; @@ -28,9 +28,9 @@ namespace utils::string std::string to_upper(std::string text) { - std::transform(text.begin(), text.end(), text.begin(), [](const char input) + std::transform(text.begin(), text.end(), text.begin(), [](const unsigned char input) { - return CHAR(toupper(input)); + return static_cast(std::toupper(input)); }); return text;