summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index d53bf496d2..7359c05060 100644
--- a/array.c
+++ b/array.c
@@ -1085,7 +1085,7 @@ static int
sort_1(a, b)
VALUE *a, *b;
{
- VALUE retval = rb_yield(rb_assoc_new(*a, *b));
+ VALUE retval = rb_yield_values(2, *a, *b);
return rb_cmpint(retval, *a, *b);
}