mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* fix the previous previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d4f75667f4
commit
f26bb91386
1 changed files with 2 additions and 1 deletions
3
string.c
3
string.c
|
@ -1349,7 +1349,8 @@ rb_string_value(volatile VALUE *ptr)
|
|||
{
|
||||
VALUE s = *ptr;
|
||||
if (TYPE(s) != T_STRING) {
|
||||
*ptr = rb_str_to_str(s);
|
||||
s = rb_str_to_str(s);
|
||||
*ptr = s;
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue