Simplify the calculation of the number of closures in MRB_TT_FIBER

This commit is contained in:
dearblue
2024-03-08 22:06:08 +09:00
parent 9257a61b39
commit cb36398d30
+1 -3
View File
@@ -939,10 +939,8 @@ gc_gray_counts(mrb_state *mrb, mrb_gc *gc, struct RBasic *obj)
/* mark closure */
if (c->cibase) {
for (i=0, ci = c->cibase; ci <= c->ci; i++, ci++)
;
children += c->ci - c->cibase + 1;
}
children += i;
}
break;