aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-06-30 16:48:08 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-06-30 16:48:08 -0300
commitb9dcf9974d4dbff3ca28ff618259e277cb0090ea (patch)
tree66b903add6a56545bb50fda02d33baab24ba44d5 /lgc.c
parenta77d263e86feea55529800028f960d7124c1385f (diff)
downloadlua-b9dcf9974d4dbff3ca28ff618259e277cb0090ea.tar.gz
lua-b9dcf9974d4dbff3ca28ff618259e277cb0090ea.tar.bz2
lua-b9dcf9974d4dbff3ca28ff618259e277cb0090ea.zip
detail (typos in comments)
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lgc.c b/lgc.c
index e2195c0d..495eb4ac 100644
--- a/lgc.c
+++ b/lgc.c
@@ -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' */