Modul:Protection banner: Unterschied zwischen den Versionen
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) |
||
Zeile 85: | Zeile 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) | ||
Zeile 156: | Zeile 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 |