summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-06 03:09:03 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-06 03:09:03 +0000
commit6b7b84edc7168786408b0757e2eb53728d1b71a6 (patch)
tree299c41408ef82854a829327d1f8d5c4cc8cf6a8c /object.c
parent53118356b53259b456aabc11fb1212d965251fc4 (diff)
new exception model
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index f57a3cebda..65f5fe920b 100644
--- a/object.c
+++ b/object.c
@@ -831,7 +831,7 @@ str2cstr(str, len)
{
if (NIL_P(str)) return NULL;
if (TYPE(str) != T_STRING) {
- str = rb_convert_type(str, T_STRING, "String", "to_str");
+ str = str_to_str(str);
}
if (len) *len = RSTRING(str)->len;
return RSTRING(str)->ptr;