summaryrefslogtreecommitdiffstats
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
commit4f0c2f3b91c699f3fa289dffe7a8aed0adb8d260 (patch)
tree0f6336e835e38fdeee207f3d9168e5e54d47b3bd /ChangeLog
parentd44b12f5bc8ad20d392c32e95bf2091e444be51c (diff)
downloadruby-4f0c2f3b91c699f3fa289dffe7a8aed0adb8d260.tar.gz
ruby-4f0c2f3b91c699f3fa289dffe7a8aed0adb8d260.tar.xz
ruby-4f0c2f3b91c699f3fa289dffe7a8aed0adb8d260.zip
* 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: http://svn.ruby-lang.org/repos/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 296ce35b2..bccfe4b51 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().