aboutsummaryrefslogtreecommitdiffstats
path: root/util/bitcompat.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/bitcompat.lua')
-rw-r--r--util/bitcompat.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/bitcompat.lua b/util/bitcompat.lua
index 43fd0f6e..537914a7 100644
--- a/util/bitcompat.lua
+++ b/util/bitcompat.lua
@@ -3,7 +3,7 @@
-- First try the bit32 lib
-- Lua 5.3 has it with compat enabled
-- Lua 5.2 has it by default
-if _G.bit32 then
+if rawget(_G, "bit32") then
return _G.bit32;
end