From 5f9f15365ff756c78e14e9e0bcd9e7d0db633a94 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 16 Feb 2015 03:27:02 +0000 Subject: console.c: fix typo * ext/io/console/console.c (console_dev): fix typo, should be rb_funcallv to call with an argument array. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/io/console/console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/io/console') diff --git a/ext/io/console/console.c b/ext/io/console/console.c index e846450007..ff1bf09537 100644 --- a/ext/io/console/console.c +++ b/ext/io/console/console.c @@ -646,7 +646,7 @@ console_dev(int argc, VALUE *argv, VALUE klass) rb_io_t *fptr; VALUE sym = 0; - rb_check_arity(argc, 0, 1); + rb_check_arity(argc, 0, UNLIMITED_ARGUMENTS); if (argc) { Check_Type(sym = argv[0], T_SYMBOL); --argc; @@ -721,7 +721,7 @@ console_dev(int argc, VALUE *argv, VALUE klass) } if (sym) { /* TODO: avoid inadvertent pindown */ - return rb_funcall(con, SYM2ID(sym), argc, argv); + return rb_funcallv(con, SYM2ID(sym), argc, argv); } return con; } -- cgit v1.2.3