Merge pull request #240 from realtebo/master

Fix
This commit is contained in:
The Brain
2018-10-11 10:48:17 +03:00
committed by GitHub

View File

@@ -213,7 +213,7 @@ module.exports = function () {
// modification time (2 bytes time, 2 bytes date)
data.writeUInt32LE(_time, Constants.CENTIM);
// uncompressed file crc-32 value
data.writeUInt32LE(_crc, Constants.CENCRC);
data.writeInt32LE(_crc & 0xFFFF, Constants.CENCRC, true);
// compressed size
data.writeUInt32LE(_compressedSize, Constants.CENSIZ);
// uncompressed size