aboutsummaryrefslogtreecommitdiff
path: root/src/lua/lvm.c
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2021-01-05 16:48:53 +0800
committerLi Jin <dragon-fly@qq.com>2021-01-05 16:48:53 +0800
commit71b9532659abb531bd1597d88451426dcc895824 (patch)
treec9b50856b37f759c9a31e1a6e761e77b51996fa6 /src/lua/lvm.c
parente3a31f9945053d8e8d9e4ef3d2e4c9abe563cff2 (diff)
downloadyuescript-71b9532659abb531bd1597d88451426dcc895824.tar.gz
yuescript-71b9532659abb531bd1597d88451426dcc895824.tar.bz2
yuescript-71b9532659abb531bd1597d88451426dcc895824.zip
update Lua.
Diffstat (limited to '')
-rw-r--r--src/lua/lvm.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lua/lvm.c b/src/lua/lvm.c
index aa3b22b..ccebdbe 100644
--- a/src/lua/lvm.c
+++ b/src/lua/lvm.c
@@ -337,10 +337,7 @@ void luaV_finishset (lua_State *L, const TValue *t, TValue *key,
337 lua_assert(isempty(slot)); /* slot must be empty */ 337 lua_assert(isempty(slot)); /* slot must be empty */
338 tm = fasttm(L, h->metatable, TM_NEWINDEX); /* get metamethod */ 338 tm = fasttm(L, h->metatable, TM_NEWINDEX); /* get metamethod */
339 if (tm == NULL) { /* no metamethod? */ 339 if (tm == NULL) { /* no metamethod? */
340 if (isabstkey(slot)) /* no previous entry? */ 340 luaH_finishset(L, h, key, slot, val); /* set new value */
341 slot = luaH_newkey(L, h, key); /* create one */
342 /* no metamethod and (now) there is an entry with given key */
343 setobj2t(L, cast(TValue *, slot), val); /* set its new value */
344 invalidateTMcache(h); 341 invalidateTMcache(h);
345 luaC_barrierback(L, obj2gco(h), val); 342 luaC_barrierback(L, obj2gco(h), val);
346 return; 343 return;