aboutsummaryrefslogtreecommitdiff
path: root/src/lj_gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_gc.c')
-rw-r--r--src/lj_gc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lj_gc.c b/src/lj_gc.c
index 5750d0ef..bcef576b 100644
--- a/src/lj_gc.c
+++ b/src/lj_gc.c
@@ -251,8 +251,7 @@ static void gc_traverse_proto(global_State *g, GCproto *pt)
251 } 251 }
252#endif 252#endif
253 /* GC during prototype creation could cause NULL fields. */ 253 /* GC during prototype creation could cause NULL fields. */
254 if (gcref(pt->chunkname)) 254 gc_mark_str(proto_chunkname(pt));
255 gc_mark_str(proto_chunkname(pt));
256 for (i = -(ptrdiff_t)pt->sizekgc; i < 0; i++) /* Mark collectable consts. */ 255 for (i = -(ptrdiff_t)pt->sizekgc; i < 0; i++) /* Mark collectable consts. */
257 gc_markobj(g, proto_kgc(pt, i)); 256 gc_markobj(g, proto_kgc(pt, i));
258 for (i = 0; i < (ptrdiff_t)pt->sizeuvname; i++) /* Mark upvalue names. */ 257 for (i = 0; i < (ptrdiff_t)pt->sizeuvname; i++) /* Mark upvalue names. */