[ruby-cvs:52941] nobu:r45795 (trunk): math.c: check domain of base argument

nobu at ruby-lang.org nobu at ruby-lang.org
Sat May 3 14:28:48 JST 2014


nobu	2014-05-03 14:28:46 +0900 (Sat, 03 May 2014)

  New Revision: 45795

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

  Log:
    math.c: check domain of base argument
    
    * math.c (math_log): check domain of base argument too.  raises
      Math::DomainError instead of returning NaN if the base is less
      than 0, and returns NaN instead of -infinity if both of two
      arguments are 0.  [ruby-core:62309] [Bug #9797]

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


More information about the ruby-cvs mailing list