3629 - lua_pushnumber(L, static_cast<lua_Number>(pro->id)); 3627 + lua_pushinteger(L, static_cast<lua_Number>(pro->id)); 3630 3628 lua_rawseti(L, -2, static_cast<int>(arrayIndex++)); 3631 3629 } 3632 3630 } 0 commit comments Comments0 (0) Please sign in to comment.
问我们为什么要使用lua_pushinteger()?EN当前版本的Lua不支持整数,只支持浮动。(在即将发布的5.3版本...