summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-08 15:34:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-08 15:34:40 +0000
commita2b448106fc1c6e6f053dbdf40f599a3f1ca97ca (patch)
treeabe874da570ede83e8c458db28c4344e31834caa
parent3f167b72bdce969f42df0c1488df8018b6f07437 (diff)
downloadruby-a2b448106fc1c6e6f053dbdf40f599a3f1ca97ca.tar.gz
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
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
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);
}
/*