aboutsummaryrefslogtreecommitdiffstats
path: root/ChangeLog
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-27 12:51:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-27 12:51:28 +0000
commit77446d45a819cdaede88300f33e1b4c859a1163c (patch)
tree0f6336e835e38fdeee207f3d9168e5e54d47b3bd /ChangeLog
parent8a3f0ce44aaa67675f8da477b11c17af767879ed (diff)
downloadruby-77446d45a819cdaede88300f33e1b4c859a1163c.tar.gz
* numeric.c (num_div): should raise ZeroDivisionError.
* numeric.c (fix_divide): ditto. * test/ruby/test_numeric.rb (TestNumeric::test_divmod): avoid ZeroDivisionError in tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 296ce35b2f..bccfe4b514 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -31,6 +31,13 @@ Tue May 27 15:36:27 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* numeric.c (num_fdiv): fallback to_f should always return float
result. should not use #quo that may return rational.
+ * numeric.c (num_div): should raise ZeroDivisionError.
+
+ * numeric.c (fix_divide): ditto.
+
+ * test/ruby/test_numeric.rb (TestNumeric::test_divmod): avoid
+ ZeroDivisionError in tests.
+
Tue May 27 13:14:53 2008 Akinori MUSHA <knu@iDaemons.org>
* enum.c (enum_to_a): Pass arguments through to #each().