[ruby-cvs:72718] nobu:r65618 (trunk): refine parse_rat

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Nov 8 11:25:44 JST 2018


nobu	2018-11-08 11:25:44 +0900 (Thu, 08 Nov 2018)

  New Revision: 65618

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

  Log:
    refine parse_rat
    
    * rational.c (read_num): return the exponent instead of the
      divisor, to get rid of huge bignums.
    
    * rational.c (parse_rat): subtract exponents instead of reduction
      of powers.

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


More information about the ruby-cvs mailing list