[ruby-cvs:50222] nobu:r43080 (trunk): math.c: fix for Bignum argument

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Sep 28 23:26:00 JST 2013


nobu	2013-09-28 23:25:59 +0900 (Sat, 28 Sep 2013)

  New Revision: 43080

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

  Log:
    math.c: fix for Bignum argument
    
    * math.c (math_log, math_log2, math_log10): fix for Bignum argument.
      numbits should be add only when right shifted.

  Modified files:
    trunk/ChangeLog
    trunk/math.c
    trunk/test/ruby/test_math.rb


More information about the ruby-cvs mailing list