pkulchenko / ZeroBraneStudio

Lightweight Lua-based IDE for Lua with code completion, syntax highlighting, live coding, remote debugger, and code analyzer; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and other Lua interpreters on Windows, macOS, and Linux
http://studio.zerobrane.com/
Other
2.61k stars 519 forks source link

Local console calculate error #1078

Closed robertlzj closed 4 years ago

robertlzj commented 4 years ago

tonumber('2RRVTHNXTR',36) in Local console should get 281,474,976,710,655(0xffffffffffff), but actually get 4294967295.

When in Remote console (runtime), result is correct. image

pkulchenko commented 4 years ago

@robertlzj, I don't think there is any issue in the IDE; this is the value that is being returned by LuaJIT (2.0.5).

robertlzj commented 4 years ago

Yes, it's not an issue. Every act has its consequence. But, I think it's counter intuitive, so may hint user when calculate distortion. Or, stay the same in remote and local console. Now, I'm cautious to use local console, because I'm not sure what's all the different between LuaJIT and Lua (Although I'm not understand Lua well). Or, I have to test console only in remote one, to keep result the same.

pkulchenko commented 4 years ago

Agree; it should be addressed in #493 and #490.