aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lapi.c b/lapi.c
index 9fffcc16..03e756d6 100644
--- a/lapi.c
+++ b/lapi.c
@@ -871,12 +871,10 @@ LUA_API void lua_seti (lua_State *L, int idx, lua_Integer n) {
871 871
872static void aux_rawset (lua_State *L, int idx, TValue *key, int n) { 872static void aux_rawset (lua_State *L, int idx, TValue *key, int n) {
873 Table *t; 873 Table *t;
874 TValue *slot;
875 lua_lock(L); 874 lua_lock(L);
876 api_checknelems(L, n); 875 api_checknelems(L, n);
877 t = gettable(L, idx); 876 t = gettable(L, idx);
878 slot = luaH_set(L, t, key); 877 luaH_set(L, t, key, s2v(L->top - 1));
879 setobj2t(L, slot, s2v(L->top - 1));
880 invalidateTMcache(t); 878 invalidateTMcache(t);
881 luaC_barrierback(L, obj2gco(t), s2v(L->top - 1)); 879 luaC_barrierback(L, obj2gco(t), s2v(L->top - 1));
882 L->top -= n; 880 L->top -= n;