summaryrefslogtreecommitdiffhomepage
path: root/src/range.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-07-08 10:07:18 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-07-08 10:07:18 +0900
commitb3fe9da32920a44c851127b94dd27b318cee199c (patch)
tree4c7426a52ea5eb5cfb30c6e2662c625b5a552bb0 /src/range.c
parent38c9c5c627296dafe9d9b172f95fea990c47e758 (diff)
downloadmruby-b3fe9da32920a44c851127b94dd27b318cee199c.tar.gz
mruby-b3fe9da32920a44c851127b94dd27b318cee199c.zip
range.c: should not include internal `__num_to_a` in the backtrace.
Diffstat (limited to 'src/range.c')
-rw-r--r--src/range.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/range.c b/src/range.c
index ec764e39b..5f4ab370c 100644
--- a/src/range.c
+++ b/src/range.c
@@ -351,6 +351,7 @@ range_num_to_a(mrb_state *mrb, mrb_value range)
mrb_value ary;
if (mrb_nil_p(end)) {
+ mrb->c->ci->mid = 0;
mrb_raise(mrb, E_RANGE_ERROR, "cannot convert endless range to an array");
}
if (mrb_integer_p(beg)) {