Skip to content

Commit 12980bd

Browse files
committed
Corrected h distance for deflate64.
1 parent 46ac4e8 commit 12980bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/INFLATE.LUA

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function inflate(r, w, z)
196196
-- cl = clen
197197
-- le = lens
198198
-- ch = chuff
199-
local hl, hd, hc, od, cl, le, ch = bs.r(5) + 257, bs.r(5) + 1, bs.r(4) + 4, {16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15}, {}, {}
199+
local hl, hd, hc, od, cl, le, ch = bs.r(5) + 257, (z and bs.r(6) or bs.r(5)) + 1, bs.r(4) + 4, {16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15}, {}, {}
200200

201201
for i = 1, 19 do cl[i] = 0 end
202202
for i = 1, hc do cl[od[i] + 1] = bs.r(3) end

0 commit comments

Comments
 (0)