aboutsummaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/array.c b/array.c
index 5d91b38884..3f448063ce 100644
--- a/array.c
+++ b/array.c
@@ -2438,6 +2438,7 @@ rb_ary_bsearch(VALUE ary)
int smaller = 0, satisfied = 0;
VALUE v, val;
+ RETURN_ENUMERATOR(ary, 0, 0);
while (low < high) {
mid = low + ((high - low) / 2);
val = rb_ary_entry(ary, mid);