Fix bug pertaining to rawgeti not supporting int64

This commit is contained in:
2021-11-17 15:06:10 -05:00
parent 51a95cc964
commit fb043e9971
4 changed files with 14 additions and 10 deletions

View File

@@ -429,11 +429,11 @@ public:
}
template<typename RT>
void rawgeti(RT &target, LuaSlot tab, lua_Integer key) const {
void rawgeti(RT &target, LuaSlot tab, int key) const {
lua_rawgeti(L_, tab, key);
pop_any_value(target);
}
template<typename KT, typename VT>
void rawset(LuaSlot tab, KT key, VT value) const {
push_any_value(key);
@@ -442,7 +442,7 @@ public:
}
template<typename VT>
void rawseti(LuaSlot tab, lua_Integer key, VT value) const {
void rawseti(LuaSlot tab, int key, VT value) const {
push_any_value(value);
lua_rawseti(L_, tab, key);
}