mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-09-12 08:08:30 +02:00
bit polyfill: tiny tweak
This commit is contained in:
parent
9020948dc5
commit
73e07eb013
@ -18,7 +18,6 @@ if minetest.global_exists("bit") then
|
|||||||
bit = bit
|
bit = bit
|
||||||
else
|
else
|
||||||
bit = {}
|
bit = {}
|
||||||
end
|
|
||||||
|
|
||||||
bit.bits = 32
|
bit.bits = 32
|
||||||
bit.powtab = { 1 }
|
bit.powtab = { 1 }
|
||||||
@ -26,6 +25,8 @@ bit.powtab = { 1 }
|
|||||||
for b = 1, bit.bits - 1 do
|
for b = 1, bit.bits - 1 do
|
||||||
bit.powtab[#bit.powtab + 1] = math.pow(2, b)
|
bit.powtab[#bit.powtab + 1] = math.pow(2, b)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
-- Functions
|
-- Functions
|
||||||
-- bit.band
|
-- bit.band
|
||||||
|
Loading…
Reference in New Issue
Block a user