diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-03-06 13:54:42 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-03-06 13:54:42 -0300 |
commit | 88a2023c3285c4514519158fba90e644fc6ffca3 (patch) | |
tree | da6611257545c486ff856dd48d66d94e056f3d66 /lgc.c | |
parent | 5ef1989c4b05aff8362a7ea6ba62aad76d4a040d (diff) | |
download | lua-github-88a2023c3285c4514519158fba90e644fc6ffca3.tar.gz |
support for strings with '\0'
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lgc.c,v 1.15 1998/01/09 14:44:55 roberto Exp roberto $ +** $Id: lgc.c,v 1.16 1998/01/19 19:49:22 roberto Exp roberto $ ** Garbage Collector ** See Copyright Notice in lua.h */ @@ -213,8 +213,8 @@ static void globalmark (void) { TaggedString *g; for (g=(TaggedString *)L->rootglobal.next; g; g=(TaggedString *)g->head.next) - if (g->u.globalval.ttype != LUA_T_NIL) { - markobject(&g->u.globalval); + if (g->u.s.globalval.ttype != LUA_T_NIL) { + markobject(&g->u.s.globalval); strmark(g); /* cannot collect non nil global variables */ } } |