From 8f25d08637749316fd30d96ad874f1400088abee Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 3 Aug 2015 17:40:26 -0300 Subject: 'invalidateTMcache' not needed in all 'settable' uses --- lapi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lapi.c') diff --git a/lapi.c b/lapi.c index f3c2b2f3..80e89f12 100644 --- a/lapi.c +++ b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 2.251 2015/07/20 18:24:50 roberto Exp roberto $ +** $Id: lapi.c,v 2.252 2015/08/03 19:50:49 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -736,6 +736,7 @@ static void auxsetstr (lua_State *L, const TValue *t, const char *k) { TString *str = luaS_new(L, k); api_checknelems(L, 1); if (luaV_fastset(L, t, str, aux, luaH_getstr, L->top)) { + invalidateTMcache(hvalue(t)); setobj2t(L, cast(TValue *, aux), L->top - 1); L->top--; /* pop value */ } -- cgit v1.2.3-55-g6feb