Skip to content

Commit a37ab7c

Browse files
committed
Replaced rb_funcall2 with rb_funcallv
1 parent e21f5ec commit a37ab7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/stringio/stringio.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ strio_unget_bytes(struct StringIO *ptr, const char *cp, long cl)
10021002
static VALUE
10031003
strio_readchar(VALUE self)
10041004
{
1005-
VALUE c = rb_funcall2(self, rb_intern("getc"), 0, 0);
1005+
VALUE c = rb_funcallv(self, rb_intern("getc"), 0, 0);
10061006
if (NIL_P(c)) rb_eof_error();
10071007
return c;
10081008
}
@@ -1016,7 +1016,7 @@ strio_readchar(VALUE self)
10161016
static VALUE
10171017
strio_readbyte(VALUE self)
10181018
{
1019-
VALUE c = rb_funcall2(self, rb_intern("getbyte"), 0, 0);
1019+
VALUE c = rb_funcallv(self, rb_intern("getbyte"), 0, 0);
10201020
if (NIL_P(c)) rb_eof_error();
10211021
return c;
10221022
}
@@ -1309,7 +1309,7 @@ strio_gets(int argc, VALUE *argv, VALUE self)
13091309
static VALUE
13101310
strio_readline(int argc, VALUE *argv, VALUE self)
13111311
{
1312-
VALUE line = rb_funcall2(self, rb_intern("gets"), argc, argv);
1312+
VALUE line = rb_funcallv(self, rb_intern("gets"), argc, argv);
13131313
if (NIL_P(line)) rb_eof_error();
13141314
return line;
13151315
}
@@ -1589,7 +1589,7 @@ strio_read(int argc, VALUE *argv, VALUE self)
15891589
static VALUE
15901590
strio_sysread(int argc, VALUE *argv, VALUE self)
15911591
{
1592-
VALUE val = rb_funcall2(self, rb_intern("read"), argc, argv);
1592+
VALUE val = rb_funcallv(self, rb_intern("read"), argc, argv);
15931593
if (NIL_P(val)) {
15941594
rb_eof_error();
15951595
}

0 commit comments

Comments
 (0)