Fix a few QCOMPARE calls (type casting bugs)
This commit is contained in:
parent
7667ce57c9
commit
566ec23da1
1 changed files with 2 additions and 2 deletions
|
@ -299,11 +299,11 @@ void TestQuaZipFile::posWrite()
|
|||
for (int i = 0; i < buffer.size(); ++i)
|
||||
buffer[i] = static_cast<char>(qrand());
|
||||
zipFile.write(buffer);
|
||||
QCOMPARE(zipFile.pos(), size / 2);
|
||||
QCOMPARE(zipFile.pos(), qint64(size / 2));
|
||||
for (int i = 0; i < size - size / 2; ++i) {
|
||||
zipFile.putChar(static_cast<char>(qrand()));
|
||||
}
|
||||
QCOMPARE(zipFile.pos(), size);
|
||||
QCOMPARE(zipFile.pos(), qint64(size));
|
||||
}
|
||||
testZip.close();
|
||||
curDir.remove(zipName);
|
||||
|
|
Loading…
Reference in a new issue