diff options
author | Hownaer <franzi.moos@googlemail.com> | 2014-08-29 00:42:33 +0200 |
---|---|---|
committer | Hownaer <franzi.moos@googlemail.com> | 2014-08-29 00:42:33 +0200 |
commit | c4d7f7996b0dcd784f5e1ccc8553b062c3ac96b6 (patch) | |
tree | 09e0a14bb1ff3690d2afb4a3a343537995593a84 /src/StringUtils.h | |
parent | Fire can be destroyed with the sword in creative-mode (diff) | |
download | cuberite-c4d7f7996b0dcd784f5e1ccc8553b062c3ac96b6.tar cuberite-c4d7f7996b0dcd784f5e1ccc8553b062c3ac96b6.tar.gz cuberite-c4d7f7996b0dcd784f5e1ccc8553b062c3ac96b6.tar.bz2 cuberite-c4d7f7996b0dcd784f5e1ccc8553b062c3ac96b6.tar.lz cuberite-c4d7f7996b0dcd784f5e1ccc8553b062c3ac96b6.tar.xz cuberite-c4d7f7996b0dcd784f5e1ccc8553b062c3ac96b6.tar.zst cuberite-c4d7f7996b0dcd784f5e1ccc8553b062c3ac96b6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/StringUtils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/StringUtils.h b/src/StringUtils.h index 4a4c267c7..c48ca6051 100644 --- a/src/StringUtils.h +++ b/src/StringUtils.h @@ -119,7 +119,7 @@ bool StringToInteger(const AString& a_str, T& a_Num) { for (size_t size = a_str.size(); i < size; i++) { - if ((a_str[i] <= '0') || (a_str[i] >= '9')) + if ((a_str[i] < '0') || (a_str[i] > '9')) { return false; } @@ -140,7 +140,7 @@ bool StringToInteger(const AString& a_str, T& a_Num) { for (size_t size = a_str.size(); i < size; i++) { - if ((a_str[i] <= '0') || (a_str[i] >= '9')) + if ((a_str[i] < '0') || (a_str[i] > '9')) { return false; } |