mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-19 00:06:01 -08:00
fix c style casting (#2561)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user