Merge pull request #6194 from dearblue/count-closures

Simplify the calculation of the number of closures in `MRB_TT_FIBER`
This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-03-09 13:22:47 +09:00
committed by GitHub
+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;