Project

General

Profile

« Previous | Next » 

Revision 2e2fabc4

Added by mrkn (Kenta Murata) over 12 years ago

  • complex.c (nucomp_rationalize): calls rationalize of real part if
    imaginary part is exactly zero. The patch is made by Marc-Andre
    Lafortune. fixes [Bug #5178] [ruby-core:38885]
  • test/ruby/test_complex.rb (test_rationalize): add a test for the
    above change.
  • complex.c (nucomp_to_r): fix RDoc comment. The patch is made by
    Marc-Andre Lafortune.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e