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 aba36c1d2f..2a883f6c39 100644
--- a/include/m_string.h
+++ b/include/m_string.h
@@ -212,7 +212,7 @@ public:
void Append(PCXSTR pszSrc, int nLength)
{
// See comment in SetString() about why we do this
- int nOffset = pszSrc - GetString();
+ UINT_PTR nOffset = UINT_PTR(pszSrc - GetString());
int nOldLength = GetLength();
if (nOldLength < 0) {