[ruby-cvs:51218] mrkn:r44073 (trunk): * bigdecimal.c (BigDecimal_coerce): convert a Float to a BigDecimal instead

mrkn at ruby-lang.org mrkn at ruby-lang.org
Sun Dec 8 20:20:52 JST 2013


mrkn	2013-12-08 20:20:51 +0900 (Sun, 08 Dec 2013)

  New Revision: 44073

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

  Log:
    * bigdecimal.c (BigDecimal_coerce): convert a Float to a BigDecimal instead
      of converting the receiver to a Float.
      [ruby-core:58756] [Bug #9192]
    
    * test/bigdecimal/test_bigdecimal.rb: add tests for the above change.

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


More information about the ruby-cvs mailing list