aboutsummaryrefslogtreecommitdiff
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-de97177744cee0c81bf9193ce9601a978636a1ea.tar.gz
lua-de97177744cee0c81bf9193ce9601a978636a1ea.tar.bz2
lua-de97177744cee0c81bf9193ce9601a978636a1ea.zip
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 @@
1/* 1/*
2** $Id: lgc.c,v 2.90 2010/05/06 18:18:07 roberto Exp roberto $ 2** $Id: lgc.c,v 2.91 2010/05/07 18:19:36 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*/
@@ -859,9 +859,9 @@ static l_mem singlestep (lua_State *L) {
859 case GCSpause: { 859 case GCSpause: {
860 if (!isgenerational(g)) 860 if (!isgenerational(g))
861 markroot(L); /* start a new collection */ 861 markroot(L); /* start a new collection */
862 else /* root still marked */ 862 /* in any case, root must be marked */
863 lua_assert(!iswhite(obj2gco(g->mainthread)) 863 lua_assert(!iswhite(obj2gco(g->mainthread))
864 && !iswhite(gcvalue(&g->l_registry))); 864 && !iswhite(gcvalue(&g->l_registry)));
865 g->gcstate = GCSpropagate; 865 g->gcstate = GCSpropagate;
866 return GCROOTCOST; 866 return GCROOTCOST;
867 } 867 }