lua-lockbox icon indicating copy to clipboard operation
lua-lockbox copied to clipboard

no bitwise support found

Open striveQiao opened this issue 2 years ago • 1 comments

when i run lua RunTest.lua image how to fix it

striveQiao avatar Apr 08 '22 08:04 striveQiao

  • [ ] lua 5.1 does NOT have builtin bitwise support.
  • [x] lua 5.2 have a builtin module named "bit32"
  • [x] lua 5.3 have native operators (and usually still the "bit32" builtin module, for compat)
  • [x] lua 5.4 have bitwise support (probably like lua 5.3)
  • [x] luajit 2.0 and 2.1 have builtin module named "bit"

You just have to find another Lua version because you probably use the only one that have no bitwise support at all.

Enjoy!

tst2005 avatar Apr 08 '22 11:04 tst2005

Closing this issue, as @tst2005 said this is a Lua version problem, not a library issue

somesocks avatar Dec 13 '22 11:12 somesocks

doesn't seem to work w/ lua 5.4 either:

[api-gateway] /usr/local/share/lua/5.4/lockbox/util/bit.lua:12: no bitwise support found

mecampbellsoup avatar Jun 30 '23 21:06 mecampbellsoup