summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/m_string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/m_string.h b/include/m_string.h
index c8b774ec85..13d77b4331 100644
--- a/include/m_string.h
+++ b/include/m_string.h
@@ -226,7 +226,7 @@ public:
int nNewLength = nOldLength+nLength;
PXSTR pszBuffer = GetBuffer(nNewLength);
- if (nOffset <= nOldLength) {
+ if (nOffset <= UINT_PTR(nOldLength)) {
pszSrc = pszBuffer+nOffset;
// No need to call CopyCharsOverlapped, since the destination is
// beyond the end of the original buffer