aboutsummaryrefslogtreecommitdiff
path: root/gamemode/shared/lockbox/bit.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/shared/lockbox/bit.lua')
-rw-r--r--gamemode/shared/lockbox/bit.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/gamemode/shared/lockbox/bit.lua b/gamemode/shared/lockbox/bit.lua
new file mode 100644
index 0000000..0ccdb82
--- /dev/null
+++ b/gamemode/shared/lockbox/bit.lua
@@ -0,0 +1,11 @@
+local e = bit
+
+-- Workaround to support Lua 5.2 bit32 API with the LuaJIT bit one
+if e.rol and not e.lrotate then
+ e.lrotate = e.rol
+end
+if e.ror and not e.rrotate then
+ e.rrotate = e.ror
+end
+
+return bit