From a2b448106fc1c6e6f053dbdf40f599a3f1ca97ca Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 8 Oct 2013 15:34:40 +0000 Subject: [PATCH] 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 --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io.c b/io.c index 3bc4455f9d..47b86ed240 100644 --- a/io.c +++ b/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); } /*