summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
Diffstat (limited to 'range.c')
-rw-r--r--range.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/range.c b/range.c
index 1903b0c1f8c..65e863c0fb9 100644
--- a/range.c
+++ b/range.c
@@ -1266,7 +1266,10 @@ range_minmax(VALUE range)
if (rb_block_given_p()) {
return rb_call_super(0, NULL);
}
- return rb_assoc_new(range_min(0, NULL, range), range_max(0, NULL, range));
+ return rb_assoc_new(
+ rb_funcall(range, rb_intern("min"), 0),
+ rb_funcall(range, rb_intern("max"), 0)
+ );
}
int