diff --git a/ChangeLog b/ChangeLog index 711fbe040f..8088c380f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Apr 1 00:17:35 2008 Tadayoshi Funaba + + * rational.c: revert. + Mon Mar 31 18:57:36 2008 NAKAMURA Usaku * {bcc,win}32/Makefile.sub (config.h): define ssize_t. diff --git a/rational.c b/rational.c index 90b227faf5..7165e93232 100644 --- a/rational.c +++ b/rational.c @@ -1432,7 +1432,7 @@ string_to_r_strict(VALUE self) VALUE a = string_to_r_internal(self); if (NIL_P(RARRAY_PTR(a)[0]) || RSTRING_LEN(RARRAY_PTR(a)[1]) > 0) { VALUE s = f_inspect(self); - rb_raise(rb_eTypeError, "invalid value for Rational: %s", + rb_raise(rb_eArgError, "invalid value for Rational: %s", StringValuePtr(s)); } return RARRAY_PTR(a)[0];