diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-08-03 17:40:26 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-08-03 17:40:26 -0300 |
commit | 8f25d08637749316fd30d96ad874f1400088abee (patch) | |
tree | abca1f33e93eb36b70fd94e0d4cda88acc9e40ba /lvm.c | |
parent | 3b795541c488c7e633567897c9112312007a20a0 (diff) | |
download | lua-8f25d08637749316fd30d96ad874f1400088abee.tar.gz lua-8f25d08637749316fd30d96ad874f1400088abee.tar.bz2 lua-8f25d08637749316fd30d96ad874f1400088abee.zip |
'invalidateTMcache' not needed in all 'settable' uses
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.248 2015/07/20 18:24:50 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.249 2015/08/03 19:50:49 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -217,6 +217,7 @@ void luaV_finishset (lua_State *L, const TValue *t, TValue *key, | |||
217 | } | 217 | } |
218 | t = tm; /* else repeat assignment over 'tm' */ | 218 | t = tm; /* else repeat assignment over 'tm' */ |
219 | if (luaV_fastset(L, t, key, oldval, luaH_get, val)) { | 219 | if (luaV_fastset(L, t, key, oldval, luaH_get, val)) { |
220 | invalidateTMcache(hvalue(t)); | ||
220 | setobj2t(L, cast(TValue *, oldval), val); | 221 | setobj2t(L, cast(TValue *, oldval), val); |
221 | return; | 222 | return; |
222 | } | 223 | } |