Closed vdweller84 closed 1 year ago
Are you sure that LuaJIT's Bitop module works with 64-bit integers? Isn't Mike Pall against the drawbacks that the Lua 5.3 implementation of 64-bit integers introduced?
Now, looking at the BitOps docs:
Note that all bit operations return signed 32 bit numbers (rationale). And these print as signed decimal numbers by default.
And:
It's desirable to define semantics that work the same across all platforms. This dictates that all operations are based on the common denominator of 32 bit integers.
Correct me if I am not talking about the same module.
Hello,
My apologies in advance if this is not a SOL issue but I thought it'd be worth asking. I have encountered the following issue: I am trying to use luaJIT's built-in
bit
library which, reportedly, handles 64-bit integers. The issue is: When I try to uselocal bit = require("bit")
and do my thing, I get this error:Opening
sol::lib::bit32
makes bit functions work but only for 32-bit numbers.So...is there any way to make the "correct" luaJIT library visible?