Project

General

Profile

« Previous | Next » 

Revision 65992061

Added by nagachika (Tomoyuki Chikanaga) about 6 years ago

merge revision(s) 60040,60188: [Backport #14014]

    complex.c: no overflow

    * complex.c (rb_complex_finite_p): get rid of overflow and
      unnecessary multiplication.

    test_complex.rb: NaN Complex

    * test/ruby/test_complex.rb (test_finite_p): assertions for NaN
      Complex.  NaN is not an infinite nor a finite number.
      [ruby-core:83272] [Bug #14014]

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