summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qdebug.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-08-17 18:15:46 +0200
committerMarc Mutz <marc.mutz@qt.io>2022-08-21 08:29:11 +0200
commitd8561b1dea4a4cabebcba38ddf2d5b67afa5826e (patch)
tree47254414363c3f51addd6f780d3d6e347700718e /src/corelib/io/qdebug.cpp
parentdb4480062796482da766a58f4812faf63d8acab0 (diff)
QDebug: finish porting to qsizetype/size_t
Port two variables from int/uint to qsizetype/size_t. These don't cause problems, because their possible ranges are limited, however, int/uint variables are a code smell these days, so replace them nonetheless. [ChangeLog][QtCore][QDebug] Fixed issues on 64-bit platforms when streaming containers (incl. strings) of more than 2Gi elements. Pick-to: 6.4 6.3 6.2 Task-number: QTBUG-103525 Change-Id: Ica6c5a6a062990306280fb713c47adb2053b752d Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/io/qdebug.cpp')
-rw-r--r--src/corelib/io/qdebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qdebug.cpp b/src/corelib/io/qdebug.cpp
index 0afbb374fa..f07bb05c5b 100644
--- a/src/corelib/io/qdebug.cpp
+++ b/src/corelib/io/qdebug.cpp
@@ -239,7 +239,7 @@ static inline void putEscapedString(QTextStreamPrivate *d, const Char *begin, si
}
// print as an escape sequence (maybe, see below for surrogate pairs)
- int buflen = 2;
+ qsizetype buflen = 2;
ushort buf[sizeof "\\U12345678" - 1];
buf[0] = '\\';