mirror of
https://github.com/0x5eal/rbxts-pako.git
synced 2025-04-10 22:00:58 +01:00
parent
b07a436d39
commit
a98f90806e
1 changed files with 3 additions and 0 deletions
|
@ -429,6 +429,9 @@ const inflate = (strm, flush) => {
|
||||||
}
|
}
|
||||||
//===//
|
//===//
|
||||||
if ((state.wrap & 2) && hold === 0x8b1f) { /* gzip header */
|
if ((state.wrap & 2) && hold === 0x8b1f) { /* gzip header */
|
||||||
|
if (state.wbits === 0) {
|
||||||
|
state.wbits = 15;
|
||||||
|
}
|
||||||
state.check = 0/*crc32(0L, Z_NULL, 0)*/;
|
state.check = 0/*crc32(0L, Z_NULL, 0)*/;
|
||||||
//=== CRC2(state.check, hold);
|
//=== CRC2(state.check, hold);
|
||||||
hbuf[0] = hold & 0xff;
|
hbuf[0] = hold & 0xff;
|
||||||
|
|
Loading…
Add table
Reference in a new issue