diff --git a/src/corelib/text/qstringalgorithms_p.h b/src/corelib/text/qstringalgorithms_p.h index 527707b8e75..513e2b8cbc3 100644 --- a/src/corelib/text/qstringalgorithms_p.h +++ b/src/corelib/text/qstringalgorithms_p.h @@ -101,7 +101,7 @@ template struct QStringAlgorithms if (ptr != dst && ptr[-1] == QChar::Space) --ptr; - int newlen = ptr - dst; + qsizetype newlen = ptr - dst; if (isConst && newlen == str.size() && unmodified) { // nothing happened, return the original return str;