mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
fix c style casting (#2561)
This commit is contained in:
parent
ee154da598
commit
657e1ac9e6
8 changed files with 10 additions and 16 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue