diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-05-06 03:09:03 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-05-06 03:09:03 +0000 |
commit | 6b7b84edc7168786408b0757e2eb53728d1b71a6 (patch) | |
tree | 299c41408ef82854a829327d1f8d5c4cc8cf6a8c /object.c | |
parent | 53118356b53259b456aabc11fb1212d965251fc4 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |