aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
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 6633d6a1..627db17d 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 1.2 1997/09/26 15:02:26 roberto Exp roberto $ 2** $Id: lgc.c,v 1.3 1997/09/26 16:46:20 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*/
@@ -187,7 +187,7 @@ static void funcmark (Closure *f)
187 if (!f->head.marked) { 187 if (!f->head.marked) {
188 int i; 188 int i;
189 f->head.marked = 1; 189 f->head.marked = 1;
190 for (i=f->consts[0].value.tf->nupvalues; i>=0; i--) 190 for (i=f->nelems; i>=0; i--)
191 markobject(&f->consts[i]); 191 markobject(&f->consts[i]);
192 } 192 }
193} 193}