mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
LJ_FR2: Fix lua_settable() and lua_setfield().
This commit is contained in:
parent
1b1bd08d3c
commit
9647aab0dc
@ -886,7 +886,7 @@ LUA_API void lua_settable(lua_State *L, int idx)
|
||||
copyTV(L, o, L->top+1);
|
||||
} else {
|
||||
TValue *base = L->top;
|
||||
copyTV(L, base+2, base-3-LJ_FR2);
|
||||
copyTV(L, base+2, base-3-2*LJ_FR2);
|
||||
L->top = base+3;
|
||||
lj_vm_call(L, base, 0+1);
|
||||
L->top -= 3+LJ_FR2;
|
||||
@ -907,7 +907,7 @@ LUA_API void lua_setfield(lua_State *L, int idx, const char *k)
|
||||
copyTV(L, o, --L->top);
|
||||
} else {
|
||||
TValue *base = L->top;
|
||||
copyTV(L, base+2, base-3-LJ_FR2);
|
||||
copyTV(L, base+2, base-3-2*LJ_FR2);
|
||||
L->top = base+3;
|
||||
lj_vm_call(L, base, 0+1);
|
||||
L->top -= 2+LJ_FR2;
|
||||
|
Loading…
Reference in New Issue
Block a user