Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
None
-
21
-
334c27dad1 (qt/qtbase/dev) 334c27dad1 (qt/tqtc-qtbase/dev) e8e91ef35c (qt/qtbase/6.4) e8e91ef35c (qt/tqtc-qtbase/6.4) e8e91ef35c (qt/tqtc-qtbase/6.4.0) 5018ab86be (qt/tqtc-qtbase/6.2) d41c841e07 (qt/qtbase/6.3) d41c841e07 (qt/tqtc-qtbase/6.3)
-
Foundation Sprint 61, Foundation Sprint 62, Foundation Sprint 63, Foundation Sprint 64, Foundation Sprint 65
Description
Let's be honest: the change from int to qsizetype sizes in Qt 6.0 was more than rushed. Half the API and a good chunk of implementation code is still using int when it should be using qsizetype, and we have been papering over this issue by making qMin() allow mixed-type arguments and, apparently, by removing the annoying MSVC warnings that, in Qt 5, so nicely pin-pointed all these implicit conversions as hard errors.
There were several real bugs in e.g. the QBuffer code corresponding to int/qsizetype, so there's probably more.
Acceptance criterium: every int has been inspected and, if needed, ported to qsizetype. Unfortunately, relying on compiler warnings isn't enough, as explicit casts won't raise warnings, but need to be ported nonetheless.
Attachments
Issue Links
- is cloned by
-
QTBUG-105471 Finish migration to qsizetype [qtbase/src/widgets/graphicsview]
- Open
- relates to
-
QTBUG-105717 REG [5.15 -> 6.x] QByteArray::replace(0, size(), ptr, n) became ambiguous on 64-bit platforms
- Closed
- resulted in
-
QTBUG-105038 QCollator is limited to ≤ 2Gi characters
- Open
-
QTBUG-105034 QDataStream cannot serialize containers > 2Gi elements
- Closed
-
QTBUG-105544 qunicodetools.cpp: libthai's th_brk is not thread-safe [2/2]: new API
- Closed
-
QTBUG-106360 qunicodetools.cpp: libthai's th_brk is not thread-safe [1/2]: try fix using old API
- Closed
-
QTBUG-105103 QString::localeAwareCompare() reports wrong result for more than 2Gi character long strings
- Open
-
QTBUG-105541 libthai th_brk is limited to ≤ 2Gi characters
- Open
-
QTBUG-104972 qUncompress(qCompress()) round-trip fails for data > 2GiB
- Closed
-
QTBUG-104985 QByteArray::fromBase64Encoding(toBase64()) round-trip fails for data > 2GiB
- Closed
-
QTBUG-105027 QByteArray::count(ch) reports wrong result for more than 2Gi occurrences
- Closed
-
QTBUG-105047 QLocale::createSeparatedList() is reports wrong result for lists with more than 2Gi elements
- Closed
-
QTBUG-105100 Review QLocale/Win for INT_MAX issues.
- Closed
-
QTBUG-105101 QRegularExpression is limited to ≤ 2Gi characters
- Closed
-
QTBUG-105104 QString::toHtmlEscaped() fails for more than 2Gi character long strings
- Closed
-
QTBUG-105105 QStringConverter/Win is not 64-bit-clean
- Closed
-
QTBUG-105543 Several data races in qunicodetools.cpp thai support initalization
- Closed