summaryrefslogtreecommitdiffstats
path: root/src/StringUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/StringUtils.h')
-rw-r--r--src/StringUtils.h4
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;
}