do not raise error in mrb_range_beg_len()

parent 342f1247
...@@ -240,9 +240,7 @@ mrb_range_beg_len(mrb_state *mrb, mrb_value range, mrb_int *begp, mrb_int *lenp, ...@@ -240,9 +240,7 @@ mrb_range_beg_len(mrb_state *mrb, mrb_value range, mrb_int *begp, mrb_int *lenp,
mrb_int beg, end, b, e; mrb_int beg, end, b, e;
struct RRange *r = mrb_range_ptr(range); struct RRange *r = mrb_range_ptr(range);
if (mrb_type(range) != MRB_TT_RANGE) { if (mrb_type(range) != MRB_TT_RANGE) return FALSE;
mrb_raise(mrb, E_TYPE_ERROR, "expected Range.");
}
beg = b = mrb_fixnum(r->edges->beg); beg = b = mrb_fixnum(r->edges->beg);
end = e = mrb_fixnum(r->edges->end); end = e = mrb_fixnum(r->edges->end);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment