[ruby-cvs:71702] nobu:r64610 (trunk): complex.c: simplify division result

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Sep 1 16:34:31 JST 2018


nobu	2018-09-01 16:34:31 +0900 (Sat, 01 Sep 2018)

  New Revision: 64610

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

  Log:
    complex.c: simplify division result
    
    * complex.c (f_divide): canonicalize rationals to simplify integer
      complex results.

  Modified files:
    trunk/complex.c
    trunk/internal.h
    trunk/rational.c
    trunk/test/ruby/test_complex.rb


More information about the ruby-cvs mailing list