diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_api.c b/src/lj_api.c index 98cffdda..1f09284f 100644 --- a/src/lj_api.c +++ b/src/lj_api.c | |||
@@ -886,7 +886,7 @@ LUA_API void lua_settable(lua_State *L, int idx) | |||
886 | copyTV(L, o, L->top+1); | 886 | copyTV(L, o, L->top+1); |
887 | } else { | 887 | } else { |
888 | TValue *base = L->top; | 888 | TValue *base = L->top; |
889 | copyTV(L, base+2, base-3-LJ_FR2); | 889 | copyTV(L, base+2, base-3-2*LJ_FR2); |
890 | L->top = base+3; | 890 | L->top = base+3; |
891 | lj_vm_call(L, base, 0+1); | 891 | lj_vm_call(L, base, 0+1); |
892 | L->top -= 3+LJ_FR2; | 892 | L->top -= 3+LJ_FR2; |
@@ -907,7 +907,7 @@ LUA_API void lua_setfield(lua_State *L, int idx, const char *k) | |||
907 | copyTV(L, o, --L->top); | 907 | copyTV(L, o, --L->top); |
908 | } else { | 908 | } else { |
909 | TValue *base = L->top; | 909 | TValue *base = L->top; |
910 | copyTV(L, base+2, base-3-LJ_FR2); | 910 | copyTV(L, base+2, base-3-2*LJ_FR2); |
911 | L->top = base+3; | 911 | L->top = base+3; |
912 | lj_vm_call(L, base, 0+1); | 912 | lj_vm_call(L, base, 0+1); |
913 | L->top -= 2+LJ_FR2; | 913 | L->top -= 2+LJ_FR2; |