From a945eb9ddab99357a9f831c5dae99f33f223ac71 Mon Sep 17 00:00:00 2001 From: mrkn Date: Fri, 15 Apr 2016 13:33:05 +0000 Subject: array.c: sum for Rational and Float mixed arrays * array.c (rb_ary_sum): apply the precision compensated algorithm for an array in which Rational and Float values are mixed. * test/ruby/test_array.rb (test_sum): add assertions for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 052628352e..6a0f3051eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Fri Apr 15 22:31:00 2016 Kenta Murata + + * array.c (rb_ary_sum): apply the precision compensated algorithm + for an array in which Rational and Float values are mixed. + + * test/ruby/test_array.rb (test_sum): add assertions for the above + change. + Fri Apr 15 22:30:01 2016 Nobuyoshi Nakada * thread.c (rb_thread_setname): defer setting native thread name -- cgit v1.2.3