diff options
Diffstat (limited to 'lgc.c')
| -rw-r--r-- | lgc.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lgc.c,v 2.182 2014/04/04 17:01:04 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 2.183 2014/05/25 19:08:32 roberto Exp roberto $ |
| 3 | ** Garbage Collector | 3 | ** Garbage Collector |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -899,7 +899,7 @@ void luaC_checkfinalizer (lua_State *L, GCObject *o, Table *mt) { | |||
| 899 | GCObject **p; | 899 | GCObject **p; |
| 900 | if (issweepphase(g)) { | 900 | if (issweepphase(g)) { |
| 901 | makewhite(g, o); /* "sweep" object 'o' */ | 901 | makewhite(g, o); /* "sweep" object 'o' */ |
| 902 | if (g->sweepgc == &o->gch.next) /* shoud not remove 'sweepgc' object */ | 902 | if (g->sweepgc == &o->gch.next) /* should not remove 'sweepgc' object */ |
| 903 | g->sweepgc = sweeptolive(L, g->sweepgc, NULL); /* change 'sweepgc' */ | 903 | g->sweepgc = sweeptolive(L, g->sweepgc, NULL); /* change 'sweepgc' */ |
| 904 | } | 904 | } |
| 905 | /* search for pointer pointing to 'o' */ | 905 | /* search for pointer pointing to 'o' */ |
