diff options
Diffstat (limited to 'lgc.c')
| -rw-r--r-- | lgc.c | 7 |
1 files changed, 3 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lgc.c,v 1.61 2000/08/08 20:42:07 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 1.62 2000/08/09 19:16:57 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 | */ |
| @@ -42,9 +42,8 @@ static void protomark (Proto *f) { | |||
| 42 | strmark(f->kstr[i]); | 42 | strmark(f->kstr[i]); |
| 43 | for (i=0; i<f->nkproto; i++) | 43 | for (i=0; i<f->nkproto; i++) |
| 44 | protomark(f->kproto[i]); | 44 | protomark(f->kproto[i]); |
| 45 | for (i=0; f->locvars[i].pc != -1; i++) /* mark local-variable names */ | 45 | for (i=0; i<f->nlocvars; i++) /* mark local-variable names */ |
| 46 | if (f->locvars[i].varname) | 46 | strmark(f->locvars[i].varname); |
| 47 | strmark(f->locvars[i].varname); | ||
| 48 | } | 47 | } |
| 49 | } | 48 | } |
| 50 | 49 | ||
