summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
Diffstat (limited to 'range.c')
-rw-r--r--range.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/range.c b/range.c
index b00800b3fbd..1903b0c1f8c 100644
--- a/range.c
+++ b/range.c
@@ -836,6 +836,7 @@ range_each_bignum_endless(VALUE beg)
for (;; beg = rb_big_plus(beg, INT2FIX(1))) {
rb_yield(beg);
}
+ UNREACHABLE;
}
RBIMPL_ATTR_NORETURN()
@@ -847,6 +848,7 @@ range_each_fixnum_endless(VALUE beg)
}
range_each_bignum_endless(LONG2NUM(RUBY_FIXNUM_MAX + 1));
+ UNREACHABLE;
}
static VALUE