revert.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
88a4961cb2
commit
459aa9f1c5
@ -1,3 +1,7 @@
|
|||||||
|
Tue Apr 1 00:17:35 2008 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
|
* rational.c: revert.
|
||||||
|
|
||||||
Mon Mar 31 18:57:36 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
Mon Mar 31 18:57:36 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* {bcc,win}32/Makefile.sub (config.h): define ssize_t.
|
* {bcc,win}32/Makefile.sub (config.h): define ssize_t.
|
||||||
|
@ -1432,7 +1432,7 @@ string_to_r_strict(VALUE self)
|
|||||||
VALUE a = string_to_r_internal(self);
|
VALUE a = string_to_r_internal(self);
|
||||||
if (NIL_P(RARRAY_PTR(a)[0]) || RSTRING_LEN(RARRAY_PTR(a)[1]) > 0) {
|
if (NIL_P(RARRAY_PTR(a)[0]) || RSTRING_LEN(RARRAY_PTR(a)[1]) > 0) {
|
||||||
VALUE s = f_inspect(self);
|
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));
|
StringValuePtr(s));
|
||||||
}
|
}
|
||||||
return RARRAY_PTR(a)[0];
|
return RARRAY_PTR(a)[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user