mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-27 17:43:53 +01:00
bit polyfill: fix undeclared global accessed warning
This commit is contained in:
parent
fa2c0642c1
commit
9020948dc5
@ -12,7 +12,13 @@
|
|||||||
-- Docs: http://bitop.luajit.org/api.html
|
-- Docs: http://bitop.luajit.org/api.html
|
||||||
|
|
||||||
-- module: bit
|
-- module: bit
|
||||||
local bit = bit or {}
|
|
||||||
|
local bit
|
||||||
|
if minetest.global_exists("bit") then
|
||||||
|
bit = bit
|
||||||
|
else
|
||||||
|
bit = {}
|
||||||
|
end
|
||||||
|
|
||||||
bit.bits = 32
|
bit.bits = 32
|
||||||
bit.powtab = { 1 }
|
bit.powtab = { 1 }
|
||||||
|
Loading…
Reference in New Issue
Block a user