[ruby-cvs:61764] mrkn:r54602 (trunk): array.c (rb_ary_sum): use rb_rational_add directly

mrkn at ruby-lang.org mrkn at ruby-lang.org
Fri Apr 15 23:46:35 JST 2016


mrkn	2016-04-15 23:46:35 +0900 (Fri, 15 Apr 2016)

  New Revision: 54602

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

  Log:
    array.c (rb_ary_sum): use rb_rational_add directly
    
    * rational.c (rb_rational_add): rename from nurat_add.
    
    * array.c (rb_ary_sum): use rb_rational_add directly.
    
    * test/ruby/test_array.rb (test_sum): add assertions for an array of
      Rational values.

  Modified files:
    trunk/ChangeLog
    trunk/array.c
    trunk/internal.h
    trunk/rational.c
    trunk/test/ruby/test_array.rb


More information about the ruby-cvs mailing list