[ruby-cvs:71105] nobu:r64014 (trunk): fix sum on infinity

nobu at ruby-lang.org nobu at ruby-lang.org
Sun Jul 22 19:47:33 JST 2018


nobu	2018-07-22 19:47:33 +0900 (Sun, 22 Jul 2018)

  New Revision: 64014

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64014

  Log:
    fix sum on infinity
    
    * array.c (rb_ary_sum): consider non-finite floats.
      [ruby-core:88024] [Bug #14926]
    
    * enum.c (sum_iter): ditto.

  Modified files:
    trunk/array.c
    trunk/enum.c
    trunk/test/ruby/test_array.rb
    trunk/test/ruby/test_enum.rb


More information about the ruby-cvs mailing list