aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/io.c b/io.c
index 61cfa97b83..2501fd9ae8 100644
--- a/io.c
+++ b/io.c
@@ -4470,7 +4470,7 @@ rb_io_putc(VALUE io, VALUE ch)
static VALUE
rb_f_putc(VALUE recv, VALUE ch)
{
- return rb_io_putc(rb_stdout, ch);
+ return rb_funcall2(rb_stdout, rb_intern("putc"), 1, &ch);
}
static VALUE
@@ -4549,8 +4549,7 @@ rb_io_puts(int argc, VALUE *argv, VALUE out)
static VALUE
rb_f_puts(int argc, VALUE *argv)
{
- rb_io_puts(argc, argv, rb_stdout);
- return Qnil;
+ return rb_funcall2(rb_stdout, rb_intern("puts"), argc, argv);
}
void