diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-12-03 14:05:28 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-12-03 14:05:28 +0000 |
commit | 2db0bdd9c0bf9e63708400d4bb8c5e8890e21bb3 (patch) | |
tree | 69ce0bba6313501a8428383e063fb10b8cf4a546 /string.c | |
parent | 6e1a4ec70e534b26365133e0c686e14c872547aa (diff) |
* string.c (to_str): should return VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -563,6 +563,7 @@ rb_str_cmp(str1, str2) return -1; } +VALUE to_str(str) VALUE str; { @@ -573,7 +574,7 @@ static VALUE str_or_nil(str) VALUE str; { - return rb_rescue(to_str, (VALUE)str, 0, 0); + return rb_rescue(to_str, str, 0, 0); } static VALUE |