This commit is contained in:
Alex 2025-09-15 19:35:19 +00:00 committed by GitHub
commit f277005b5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -9592,7 +9592,7 @@ QDataStream &operator>>(QDataStream &in, QString &str)
qsizetype allocated = 0; qsizetype allocated = 0;
while (allocated < len) { while (allocated < len) {
int blockSize = qMin(Step, len - allocated); qsizetype blockSize = qMin(Step, len - allocated);
str.resize(allocated + blockSize); str.resize(allocated + blockSize);
if (in.readRawData(reinterpret_cast<char *>(str.data()) + allocated * 2, if (in.readRawData(reinterpret_cast<char *>(str.data()) + allocated * 2,
blockSize * 2) != blockSize * 2) { blockSize * 2) != blockSize * 2) {