I tried to add a generic bitwise module support.
Lua 5.1 doesn't have native bit module
Lua 5.2 have one named bit32
LuaJIT have one named bit (similar to bit32 but not exactly the same)
I also found a 100% lua implementation, theoricaly allowing support for all version (mostly Lua 5.1).
See https://github.com/davidm/lua-bit-numberlua
I decide to create a lockbox.util.bit to use only one API internaly.
Current status :
FAIL: Lua 5.1 (internaly using bit.numberlua) : I supposed it's a bit.numberlua bug...
PASS: Lua 5.2 : all tests passed (internaly using bit32
PASS: LuaJIT (2.0) : all tests passed (internaly using bit)
I tried to add a generic bitwise module support. Lua 5.1 doesn't have native bit module Lua 5.2 have one named bit32 LuaJIT have one named bit (similar to bit32 but not exactly the same)
I also found a 100% lua implementation, theoricaly allowing support for all version (mostly Lua 5.1). See https://github.com/davidm/lua-bit-numberlua I decide to create a lockbox.util.bit to use only one API internaly.
Current status :