diff --git a/headers/entryHeader.js b/headers/entryHeader.js index 476ba22..bdfef48 100644 --- a/headers/entryHeader.js +++ b/headers/entryHeader.js @@ -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