summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-16 03:27:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-16 03:27:02 +0000
commit5f9f15365ff756c78e14e9e0bcd9e7d0db633a94 (patch)
tree160fad2e5db7df233b7f4186ebd5a077cdefe7dc
parentd38ef77dec0634b24ba7e33fe1788278fc1f4449 (diff)
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
-rw-r--r--ext/io/console/console.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index e8464500079..ff1bf09537d 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;
}