diff options
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 1.15 1998/01/09 14:44:55 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 1.16 1998/01/19 19:49:22 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 | */ |
@@ -213,8 +213,8 @@ static void globalmark (void) | |||
213 | { | 213 | { |
214 | TaggedString *g; | 214 | TaggedString *g; |
215 | for (g=(TaggedString *)L->rootglobal.next; g; g=(TaggedString *)g->head.next) | 215 | for (g=(TaggedString *)L->rootglobal.next; g; g=(TaggedString *)g->head.next) |
216 | if (g->u.globalval.ttype != LUA_T_NIL) { | 216 | if (g->u.s.globalval.ttype != LUA_T_NIL) { |
217 | markobject(&g->u.globalval); | 217 | markobject(&g->u.s.globalval); |
218 | strmark(g); /* cannot collect non nil global variables */ | 218 | strmark(g); /* cannot collect non nil global variables */ |
219 | } | 219 | } |
220 | } | 220 | } |