mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
revert r65444 and r65446 because of commit miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
efe869c0e5
commit
7d359f9b69
16 changed files with 184 additions and 652 deletions
6
string.c
6
string.c
|
@ -2006,9 +2006,9 @@ rb_str_format_m(VALUE str, VALUE arg)
|
|||
VALUE tmp = rb_check_array_type(arg);
|
||||
|
||||
if (!NIL_P(tmp)) {
|
||||
const long len = RARRAY_LENINT(tmp);
|
||||
VALUE rv = rb_str_format(len, RARRAY_CONST_PTR(tmp), str);
|
||||
return rv;
|
||||
VALUE rv = rb_str_format(RARRAY_LENINT(tmp), RARRAY_CONST_PTR(tmp), str);
|
||||
RB_GC_GUARD(tmp);
|
||||
return rv;
|
||||
}
|
||||
return rb_str_format(1, &arg, str);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue