airminer / jnlua

JNLua - Java Native Lua
MIT License
15 stars 5 forks source link

`pushInteger` only supports 32 bit integers #16

Open JHNUXER opened 2 years ago

JHNUXER commented 2 years ago

pushInteger should support 64-bit input on the java side of things. Checking that sizeof(lua_Integer) is big enough to handle this can be done on the native side of things. Otherwise, you're somewhat handicapping module developers. It's particularly troublesome for working with file-sizes.