diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | math.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Fri Apr 30 22:46:27 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca> + + * math.c: Math::DomainError < StandardException [ruby-core:29855] + Fri Apr 30 21:40:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> * test/test_open3.rb (TestOpen3#test_commandline): use simple @@ -746,7 +746,7 @@ void Init_Math(void) { rb_mMath = rb_define_module("Math"); - rb_eMathDomainError = rb_define_class_under(rb_mMath, "DomainError", rb_eArgError); + rb_eMathDomainError = rb_define_class_under(rb_mMath, "DomainError", rb_eStandardError); #ifdef M_PI rb_define_const(rb_mMath, "PI", DBL2NUM(M_PI)); |