diff options
author | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-15 13:33:05 +0000 |
---|---|---|
committer | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-15 13:33:05 +0000 |
commit | a945eb9ddab99357a9f831c5dae99f33f223ac71 (patch) | |
tree | aa2e2561b4b4bc1160ca4f2434bd28a6770c22f7 /ChangeLog | |
parent | 4bf8fa83b7084040fbe12cc003f881ccf128c911 (diff) | |
download | ruby-a945eb9ddab99357a9f831c5dae99f33f223ac71.tar.gz |
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
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,11 @@ +Fri Apr 15 22:31:00 2016 Kenta Murata <mrkn@mrkn.jp> + + * 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 <nobu@ruby-lang.org> * thread.c (rb_thread_setname): defer setting native thread name |