range.c (mrb_gc_mark_range): return size

If not initialized, size is zero, otherwise two.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-03-15 23:36:30 +09:00
parent f13daee2f5
commit b913824d47
3 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ mrb_bool mrb_proc_eql(mrb_state *mrb, mrb_value self, mrb_value other);
/* range */
#ifdef MRUBY_RANGE_H
mrb_value mrb_get_values_at(mrb_state *mrb, mrb_value obj, mrb_int olen, mrb_int argc, const mrb_value *argv, mrb_value (*func)(mrb_state*, mrb_value, mrb_int));
void mrb_gc_mark_range(mrb_state *mrb, struct RRange *r);
size_t mrb_gc_mark_range(mrb_state *mrb, struct RRange *r);
#endif
/* string */