Module:Protection banner: Difference between revisions
should have been math.ceil, not math.floor
(key components are in the correct order now - property order still a long way off, though) |
(should have been math.ceil, not math.floor) |
||
Line 85: | Line 85: | ||
local tinsert = table.insert | local tinsert = table.insert | ||
local tremove = table.remove | local tremove = table.remove | ||
local | local ceil = math.ceil | ||
local function toTableEnd(t, pos) | local function toTableEnd(t, pos) | ||
Line 156: | Line 156: | ||
else | else | ||
local quotient = i / 2 ^ (j - 1) | local quotient = i / 2 ^ (j - 1) | ||
quotient = | quotient = ceil(quotient) | ||
if quotient % 2 == 1 then | if quotient % 2 == 1 then | ||
key[pos] = val | key[pos] = val |