diff options
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -832,7 +832,7 @@ static void GCTM (lua_State *L) { | |||
832 | lua_assert(!g->gcemergency); | 832 | lua_assert(!g->gcemergency); |
833 | setgcovalue(L, &v, udata2finalize(g)); | 833 | setgcovalue(L, &v, udata2finalize(g)); |
834 | tm = luaT_gettmbyobj(L, &v, TM_GC); | 834 | tm = luaT_gettmbyobj(L, &v, TM_GC); |
835 | if (ttisfunction(tm)) { /* is the finalizer a function? */ | 835 | if (!notm(tm)) { /* is there a finalizer? */ |
836 | int status; | 836 | int status; |
837 | lu_byte oldah = L->allowhook; | 837 | lu_byte oldah = L->allowhook; |
838 | int running = g->gcrunning; | 838 | int running = g->gcrunning; |