diff --git a/src/corelib/io/qdebug.h b/src/corelib/io/qdebug.h index 40f65fd29b3..8147f0e9ffe 100644 --- a/src/corelib/io/qdebug.h +++ b/src/corelib/io/qdebug.h @@ -292,7 +292,7 @@ inline QDebugIfHasDebugStream operator<<(QDebug debug, const QContiguousCache { const QDebugStateSaver saver(debug); debug.nospace() << "QContiguousCache("; - for (int i = cache.firstIndex(); i <= cache.lastIndex(); ++i) { + for (qsizetype i = cache.firstIndex(); i <= cache.lastIndex(); ++i) { debug << cache[i]; if (i != cache.lastIndex()) debug << ", ";