summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-02-16 15:53:53 +0100
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-02-16 15:58:27 +0100
commitf405c8820eaca0bae5b7bb869586ab846c0ce20a (patch)
treee581875b2dde7280c70e929775c237fcda66c0e8 /src
parentMerge pull request #2985 from marvinkopf/poweredrail (diff)
downloadcuberite-f405c8820eaca0bae5b7bb869586ab846c0ce20a.tar
cuberite-f405c8820eaca0bae5b7bb869586ab846c0ce20a.tar.gz
cuberite-f405c8820eaca0bae5b7bb869586ab846c0ce20a.tar.bz2
cuberite-f405c8820eaca0bae5b7bb869586ab846c0ce20a.tar.lz
cuberite-f405c8820eaca0bae5b7bb869586ab846c0ce20a.tar.xz
cuberite-f405c8820eaca0bae5b7bb869586ab846c0ce20a.tar.zst
cuberite-f405c8820eaca0bae5b7bb869586ab846c0ce20a.zip
Diffstat (limited to 'src')
-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;
}