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 2bb31dd1e7..8e50449efa 100644
--- a/array.c
+++ b/array.c
@@ -5762,7 +5762,7 @@ rb_ary_sum(int argc, VALUE *argv, VALUE ary)
v = rb_to_float(v);
goto float_value;
}
- v = rb_rational_add(e, v);
+ v = rb_rational_plus(e, v);
}
return v;
}