Skip to content

Commit 74bdec6

Browse files
authored
Merge pull request #240 from realtebo/master
Fix
2 parents 5e4c8ad + f472a1d commit 74bdec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: headers/entryHeader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ module.exports = function () {
213213
// modification time (2 bytes time, 2 bytes date)
214214
data.writeUInt32LE(_time, Constants.CENTIM);
215215
// uncompressed file crc-32 value
216-
data.writeUInt32LE(_crc, Constants.CENCRC);
216+
data.writeInt32LE(_crc & 0xFFFF, Constants.CENCRC, true);
217217
// compressed size
218218
data.writeUInt32LE(_compressedSize, Constants.CENSIZ);
219219
// uncompressed size

0 commit comments

Comments
 (0)