[ruby-cvs:67164] nobu:r59986 (trunk): numeric.c: use NUM2DBL

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Sep 22 12:05:02 JST 2017


nobu	2017-09-22 12:05:02 +0900 (Fri, 22 Sep 2017)

  New Revision: 59986

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

  Log:
    numeric.c: use NUM2DBL
    
    * numeric.c (fix_fdiv_double), bignum.c (rb_big_fdiv_double): use
      NUM2DBL on unknown object.  RFLOAT_VALUE is only appliicable to
      T_FLOAT object.  [ruby-core:82924] [Bug #13928]

  Modified files:
    trunk/bignum.c
    trunk/numeric.c
    trunk/test/ruby/test_bignum.rb
    trunk/test/ruby/test_integer.rb


More information about the ruby-cvs mailing list