diff options
Diffstat (limited to 'src/lj_gc.c')
-rw-r--r-- | src/lj_gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_gc.c b/src/lj_gc.c index 04aa7161..c1ade95a 100644 --- a/src/lj_gc.c +++ b/src/lj_gc.c | |||
@@ -259,8 +259,8 @@ static void gc_traverse_proto(global_State *g, GCproto *pt) | |||
259 | if (proto_uvname(pt, i)) | 259 | if (proto_uvname(pt, i)) |
260 | gc_mark_str(gco2str(proto_uvname(pt, i))); | 260 | gc_mark_str(gco2str(proto_uvname(pt, i))); |
261 | for (i = 0; i < (ptrdiff_t)pt->sizevarinfo; i++) /* Mark names of locals. */ | 261 | for (i = 0; i < (ptrdiff_t)pt->sizevarinfo; i++) /* Mark names of locals. */ |
262 | if (pt->varinfo[i].name) | 262 | if (gcref(proto_varinfo(pt)[i].name)) |
263 | gc_mark_str(pt->varinfo[i].name); | 263 | gc_mark_str(gco2str(gcref(proto_varinfo(pt)[i].name))); |
264 | } | 264 | } |
265 | 265 | ||
266 | /* Traverse the frame structure of a stack. */ | 266 | /* Traverse the frame structure of a stack. */ |