aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2015-01-07 13:17:57 +0100
committerMike Pall <mike>2015-01-07 13:17:57 +0100
commit9647aab0dc56652d5c54c464d7f1169e27fcbcd0 (patch)
tree574a2ce5e30bb89e961e6857a55db3a92f38dfaa
parent1b1bd08d3c98a936058f4bee9de59dc7505e741c (diff)
downloadluajit-9647aab0dc56652d5c54c464d7f1169e27fcbcd0.tar.gz
luajit-9647aab0dc56652d5c54c464d7f1169e27fcbcd0.tar.bz2
luajit-9647aab0dc56652d5c54c464d7f1169e27fcbcd0.zip
LJ_FR2: Fix lua_settable() and lua_setfield().
-rw-r--r--src/lj_api.c4
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;