[ruby-cvs:65539] nobu:r58366 (trunk): bignum.c: fix inexact estimation

nobu at ruby-lang.org nobu at ruby-lang.org
Sun Apr 16 00:29:09 JST 2017


nobu	2017-04-16 00:29:09 +0900 (Sun, 16 Apr 2017)

  New Revision: 58366

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

  Log:
    bignum.c: fix inexact estimation
    
    * bignum.c (estimate_initial_sqrt): estimated square root is
      inexact if it is not equal to its ceil, needs Newton's method.
      [ruby-core:80696] [Bug #13440]

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


More information about the ruby-cvs mailing list