[ruby-cvs:51166] mrkn:r44021 (trunk): * ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec):

mrkn at ruby-lang.org mrkn at ruby-lang.org
Fri Dec 6 01:35:01 JST 2013


mrkn	2013-12-06 01:34:59 +0900 (Fri, 06 Dec 2013)

  New Revision: 44021

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44021

  Log:
    * ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec):
      treat 0.0 and -0.0 of floating-point numbers specially for an optimization
      and to correctly propagate its signbit to the result.
      [Bug #9214] [ruby-core:58858]
    
    * test/bigdecimal/test_bigdecimal.rb: add tests case for the above change.
    
    * test/bigdecimal/test_bigdecimal_util.rb: ditto.

  Modified files:
    trunk/ChangeLog
    trunk/ext/bigdecimal/bigdecimal.c
    trunk/test/bigdecimal/test_bigdecimal.rb
    trunk/test/bigdecimal/test_bigdecimal_util.rb


More information about the ruby-cvs mailing list