summaryrefslogtreecommitdiff
path: root/src/shared/proparser/proitems.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/proparser/proitems.cpp')
-rw-r--r--src/shared/proparser/proitems.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/proparser/proitems.cpp b/src/shared/proparser/proitems.cpp
index e51e724eee..962268ca7d 100644
--- a/src/shared/proparser/proitems.cpp
+++ b/src/shared/proparser/proitems.cpp
@@ -299,7 +299,7 @@ ProString ProString::mid(int off, int len) const
off = m_length;
ret.m_offset += off;
ret.m_length -= off;
- if (ret.m_length > len)
+ if ((uint)ret.m_length > (uint)len) // Unsigned comparison to interpret < 0 as infinite
ret.m_length = len;
return ret;
}