commit | e3c83835e7b396ab7db538fb3b052f02d7807dee | [log] [tgz] |
---|---|---|
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Mon Dec 30 14:53:38 2019 -0300 |
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Mon Dec 30 14:53:38 2019 -0300 |
tree | c6d577a9543e0938b09bc697e551eeed21b7019e | |
parent | bd1b87c5790c0c6fe23f76aa360e879922e1e738 [diff] |
Fixed bug in 'aux_rawset' In 'aux_rawset', top must be decremented after the barrier, which refers to top-1. (Bug introduced in commit c646e57fd.)
diff --git a/lapi.c b/lapi.c index b49d45c..073baa4 100644 --- a/lapi.c +++ b/lapi.c
@@ -856,9 +856,9 @@ t = gettable(L, idx); slot = luaH_set(L, t, key); setobj2t(L, slot, s2v(L->top - 1)); - L->top -= n; invalidateTMcache(t); luaC_barrierback(L, obj2gco(t), s2v(L->top - 1)); + L->top -= n; lua_unlock(L); }