Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix passing integers to dostring and remotedostring
When copying arguments for dostring and remotedostring between two Lua states, under Lua it is important to keep integers integers. Previously 'lua_pushnumber(state1, lua_tonumber(state2, idx))' was used which turned all numbers into floats. Fix by checking if a number is an integer using 'lua_isinteger' first.
- Loading branch information