Skip to content

Commit 287850b

Browse files
committed
Change variable name to prevent shadowing.
1 parent e29b766 commit 287850b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/INFLATE.LUA

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ function inflate(r, w)
8585

8686
-- m = maximum length
8787
-- c = counts
88-
-- o = code
88+
-- d = code
8989
-- n = next code
9090
-- t = tab
91-
local m, c, o, n, t = 0, {}, 0, {}, {}
91+
local m, c, d, n, t = 0, {}, 0, {}, {}
9292

9393
for _, len in ipairs(lengths) do
9494
if len > 0 then
@@ -99,8 +99,8 @@ function inflate(r, w)
9999

100100
-- b = bits
101101
for b = 1, m do
102-
o = (o + (c[b - 1] or 0)) << 1
103-
n[b] = o
102+
d = (d + (c[b - 1] or 0)) << 1
103+
n[b] = d
104104
end
105105

106106
---Reverse bits

0 commit comments

Comments
 (0)