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:
ko1 2018-10-30 21:01:55 +00:00
parent efe869c0e5
commit 7d359f9b69
16 changed files with 184 additions and 652 deletions

View file

@ -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);
}