summaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-05-07 15:43:24 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-05-07 15:43:24 -0300
commitde97177744cee0c81bf9193ce9601a978636a1ea (patch)
treec38378f7c3e3a4b89c66593ff7f1a4886ada79fb /lgc.c
parentfa2ddb070acf3c15afe0d721695d7578eeebf4b9 (diff)
downloadlua-github-de97177744cee0c81bf9193ce9601a978636a1ea.tar.gz
avoid 'else assert' (which may result in an empty else)
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lgc.c b/lgc.c
index 1721220a..49d00f3c 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
/*
-** $Id: lgc.c,v 2.90 2010/05/06 18:18:07 roberto Exp roberto $
+** $Id: lgc.c,v 2.91 2010/05/07 18:19:36 roberto Exp roberto $
** Garbage Collector
** See Copyright Notice in lua.h
*/
@@ -859,9 +859,9 @@ static l_mem singlestep (lua_State *L) {
case GCSpause: {
if (!isgenerational(g))
markroot(L); /* start a new collection */
- else /* root still marked */
- lua_assert(!iswhite(obj2gco(g->mainthread))
- && !iswhite(gcvalue(&g->l_registry)));
+ /* in any case, root must be marked */
+ lua_assert(!iswhite(obj2gco(g->mainthread))
+ && !iswhite(gcvalue(&g->l_registry)));
g->gcstate = GCSpropagate;
return GCROOTCOST;
}