fix: should use type of lua_Integer.
fix: integer overflow potential.