summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-03 05:28:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-03 05:28:46 +0000
commit38656e24bea4a6ced1ebc18a0178bf8c1b175ca7 (patch)
tree34a3a3c204a7c50246c3f83fba378bc4f590c00f /NEWS
parent1fd4c7f1f5efff77579172b7ca7ae7e971361919 (diff)
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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS7
1 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index cbe70d0376..a1a5303783 100644
--- a/NEWS
+++ b/NEWS
@@ -48,6 +48,13 @@ with all sufficient information, see the ChangeLog file.
* When flushing file IO, you cannot assume that the metadata of the file
is updated immediately. On some platforms (especially Windows), it is
delayed until the filesystem load is decreased.
+
+* Math
+ * incompatible changes:
+ * Math.log now 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.
+
* Proc
* incompatible changes:
* ArgumentError is no longer raised when lambda Proc is passed as a