summaryrefslogtreecommitdiffstats
path: root/src/StringUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/StringUtils.cpp')
-rw-r--r--src/StringUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/StringUtils.cpp b/src/StringUtils.cpp
index 76b9fdbde..8ea94ecd7 100644
--- a/src/StringUtils.cpp
+++ b/src/StringUtils.cpp
@@ -222,7 +222,7 @@ AString TrimString(const AString & str)
size_t start = 0;
while (start < len)
{
- if (str[start] > 32)
+ if (static_cast<unsigned char>(str[start]) > 32)
{
break;
}
@@ -236,7 +236,7 @@ AString TrimString(const AString & str)
size_t end = len;
while (end >= start)
{
- if (str[end] > 32)
+ if (static_cast<unsigned char>(str[end]) > 32)
{
break;
}