mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2025-03-28 11:32:31 +01:00
bit polyfill: tiny tweak
This commit is contained in:
@ -18,14 +18,15 @@ if minetest.global_exists("bit") then
|
||||
bit = bit
|
||||
else
|
||||
bit = {}
|
||||
|
||||
bit.bits = 32
|
||||
bit.powtab = { 1 }
|
||||
|
||||
for b = 1, bit.bits - 1 do
|
||||
bit.powtab[#bit.powtab + 1] = math.pow(2, b)
|
||||
end
|
||||
end
|
||||
|
||||
bit.bits = 32
|
||||
bit.powtab = { 1 }
|
||||
|
||||
for b = 1, bit.bits - 1 do
|
||||
bit.powtab[#bit.powtab + 1] = math.pow(2, b)
|
||||
end
|
||||
|
||||
-- Functions
|
||||
-- bit.band
|
||||
|
Reference in New Issue
Block a user