diff options
author | leo78913 <leo3758@riseup.net> | 2022-10-28 15:46:02 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-28 15:46:02 -0300 |
commit | 4500e345b37f007f9e6311637db9df0351a57dfb (patch) | |
tree | c523d60512749da628e822b579b47dda898782bc /launcher/GZip.cpp | |
parent | 43bf601f120c9b1eac1c73feb31c67df54955b6d (diff) | |
parent | e885f3c26a030d093e2c7e60770c069e4d958cff (diff) | |
download | PrismLauncher-4500e345b37f007f9e6311637db9df0351a57dfb.tar.gz PrismLauncher-4500e345b37f007f9e6311637db9df0351a57dfb.tar.bz2 PrismLauncher-4500e345b37f007f9e6311637db9df0351a57dfb.zip |
Merge branch 'PrismLauncher:develop' into toolbar-icons
Diffstat (limited to 'launcher/GZip.cpp')
-rw-r--r-- | launcher/GZip.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/GZip.cpp b/launcher/GZip.cpp index 067104cf..e36dc8a4 100644 --- a/launcher/GZip.cpp +++ b/launcher/GZip.cpp @@ -72,7 +72,7 @@ bool GZip::unzip(const QByteArray &compressedBytes, QByteArray &uncompressedByte uncompLength *= 2; } - strm.next_out = (Bytef *)(uncompressedBytes.data() + strm.total_out); + strm.next_out = reinterpret_cast<Bytef *>((uncompressedBytes.data() + strm.total_out)); strm.avail_out = uncompLength - strm.total_out; // Inflate another chunk. @@ -129,7 +129,7 @@ bool GZip::zip(const QByteArray &uncompressedBytes, QByteArray &compressedBytes) { compressedBytes.resize(compressedBytes.size() * 2); } - zs.next_out = (Bytef *) (compressedBytes.data() + offset); + zs.next_out = reinterpret_cast<Bytef*>((compressedBytes.data() + offset)); temp = zs.avail_out = compressedBytes.size() - offset; ret = deflate(&zs, Z_FINISH); offset += temp - zs.avail_out; |