util.ip: rename variable (i is already defined) [luacheck]

This commit is contained in:
Anton Shestakov 2016-07-09 17:33:38 +08:00
parent b1cda68544
commit 1e78e0f236

View file

@ -58,8 +58,8 @@ local function toBits(ip)
for _ = 1, 4 - field:len() do
result = result .. "0000";
end
for i = 1, field:len() do
result = result .. hex2bits[field:sub(i,i)];
for j = 1, field:len() do
result = result .. hex2bits[field:sub(j, j)];
end
end
end