mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-23 03:55:01 +00:00
bit polyfill: tiny tweak
This commit is contained in:
parent
9020948dc5
commit
73e07eb013
1 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue