mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix type.
* string.c (rb_str_format_m): should pass `int`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d4f1187d31
commit
870363886f
1 changed files with 1 additions and 3 deletions
4
string.c
4
string.c
|
@ -2006,9 +2006,7 @@ 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;
|
||||
return rb_str_format(RARRAY_LENINT(tmp), RARRAY_CONST_PTR(tmp), str);
|
||||
}
|
||||
return rb_str_format(1, &arg, str);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue