aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-07 11:25:26 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-07 11:25:26 -0200
commitad0704e40cc7b3135fedc6d40a522addb039e090 (patch)
tree4bcd104de4941239e09316efcee5e5e3566b8b81 /lgc.c
parent5a3f26f85558bedfa439027919d928abfdd00b6d (diff)
downloadlua-ad0704e40cc7b3135fedc6d40a522addb039e090.tar.gz
lua-ad0704e40cc7b3135fedc6d40a522addb039e090.tar.bz2
lua-ad0704e40cc7b3135fedc6d40a522addb039e090.zip
back to 'CallInfo' (no gains with its removal)
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lgc.c b/lgc.c
index 2155b28d..036020ae 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 2.236 2017/10/31 15:29:28 roberto Exp roberto $ 2** $Id: lgc.c,v 2.236 2017/10/31 15:29:28 roberto Exp $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -866,9 +866,9 @@ static void GCTM (lua_State *L, int propagateerrors) {
866 setobj2s(L, L->top, tm); /* push finalizer... */ 866 setobj2s(L, L->top, tm); /* push finalizer... */
867 setobj2s(L, L->top + 1, &v); /* ... and its argument */ 867 setobj2s(L, L->top + 1, &v); /* ... and its argument */
868 L->top += 2; /* and (next line) call the finalizer */ 868 L->top += 2; /* and (next line) call the finalizer */
869 callstatus(L->func) |= CIST_FIN; /* will run a finalizer */ 869 L->ci->callstatus |= CIST_FIN; /* will run a finalizer */
870 status = luaD_pcall(L, dothecall, NULL, savestack(L, L->top - 2), 0); 870 status = luaD_pcall(L, dothecall, NULL, savestack(L, L->top - 2), 0);
871 callstatus(L->func) &= ~CIST_FIN; /* not running a finalizer anymore */ 871 L->ci->callstatus &= ~CIST_FIN; /* not running a finalizer anymore */
872 L->allowhook = oldah; /* restore hooks */ 872 L->allowhook = oldah; /* restore hooks */
873 g->gcrunning = running; /* restore state */ 873 g->gcrunning = running; /* restore state */
874 if (status != LUA_OK && propagateerrors) { /* error while running __gc? */ 874 if (status != LUA_OK && propagateerrors) { /* error while running __gc? */