aboutsummaryrefslogtreecommitdiffstats
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 6bced0a3eb..12436cea05 100644
--- a/range.c
+++ b/range.c
@@ -595,6 +595,7 @@ range_bsearch(VALUE range)
#define BSEARCH(conv) \
do { \
+ RETURN_ENUMERATOR(range, 0, 0); \
if (EXCL(range)) high--; \
org_high = high; \
while (low < high) { \
@@ -639,6 +640,7 @@ range_bsearch(VALUE range)
VALUE low = beg;
VALUE high = end;
VALUE mid, org_high;
+ RETURN_ENUMERATOR(range, 0, 0);
if (EXCL(range)) high = rb_funcall(high, '-', 1, INT2FIX(1));
org_high = high;