[ruby-cvs:65155] nobu:r57989 (trunk): rational.c: read_num

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Mar 16 12:32:16 JST 2017


nobu	2017-03-16 12:32:16 +0900 (Thu, 16 Mar 2017)

  New Revision: 57989

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

  Log:
    rational.c: read_num
    
    * rational.c (read_num): use rb_int_parse_cstr to parse integer
      parts, and make String#to_r consistent with #to_i and #to_f.
      [ruby-core:80098] [Bug #13105]

  Modified files:
    trunk/rational.c
    trunk/test/ruby/test_rational.rb


More information about the ruby-cvs mailing list