mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
io.c: use rb_funcallv
* io.c (rb_io_write): use rb_funcallv() instead of rb_funcall() to get rid of unnecessary alloca. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3f167b72bd
commit
a2b448106f
1 changed files with 1 additions and 1 deletions
2
io.c
2
io.c
|
@ -1428,7 +1428,7 @@ io_write_m(VALUE io, VALUE str)
|
|||
VALUE
|
||||
rb_io_write(VALUE io, VALUE str)
|
||||
{
|
||||
return rb_funcall(io, id_write, 1, str);
|
||||
return rb_funcallv(io, id_write, 1, &str);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue