gudzpoz / luajava

Lua for Java on Windows, Mac OS X, Linux, Android. 5.1, 5.2, 5.3, 5.4, LuaJ or LuaJIT.
https://gudzpoz.github.io/luajava/
Other
122 stars 14 forks source link

`long toInteger(int index);` request #166

Closed s20blast closed 2 months ago

s20blast commented 3 months ago

lua 5.3 added 64bit integer type. double toNumber(int index); is not sufficient.

gudzpoz commented 2 months ago

A Lua#toInteger method along with Lua#push(long) has been added. However, to ensure compatibility across Lua versions, Lua#toObject, for example, still converts Lua numbers/integers into Double instead of Long.