Fix cast warnings with MSVC

This commit is contained in:
Jonas Kvinge
2025-03-25 00:37:07 +01:00
parent d5281abb22
commit 5e031be42c
59 changed files with 207 additions and 207 deletions

View File

@@ -59,7 +59,7 @@ bool Copy(QIODevice *source, QIODevice *destination) {
if (!destination->open(QIODevice::WriteOnly)) return false;
const qint64 bytes = source->size();
unique_ptr<char[]> data(new char[bytes]);
unique_ptr<char[]> data(new char[static_cast<size_t>(bytes)]);
qint64 pos = 0;
qint64 bytes_read = 0;