fix c style casting (#2561)

This commit is contained in:
Zach H
2017-04-05 15:45:58 -04:00
committed by GitHub
parent ee154da598
commit 657e1ac9e6
8 changed files with 10 additions and 16 deletions

View File

@@ -288,11 +288,8 @@ UnZip::ErrorCode UnzipPrivate::parseLocalHeaderRecord(const QString& path, const
immediately following the compressed data."
*/
bool hasDataDescriptor = entry.hasDataDescriptor();
bool checkFailed = entry.compMethod != getUShort(uBuffer, UNZIP_LH_OFF_CMETHOD);
bool checkFailed = false;
if (!checkFailed)
checkFailed = entry.compMethod != getUShort(uBuffer, UNZIP_LH_OFF_CMETHOD);
if (!checkFailed)
checkFailed = entry.gpFlag[0] != uBuffer[UNZIP_LH_OFF_GPFLAG];
if (!checkFailed)