summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io.c b/io.c
index 51f839cebd..f9fc3724f3 100644
--- a/io.c
+++ b/io.c
@@ -8471,7 +8471,7 @@ io_s_write(int argc, VALUE *argv, int binary)
static VALUE
rb_io_s_write(int argc, VALUE *argv, VALUE io)
{
- io_s_write(argc, argv, 0);
+ return io_s_write(argc, argv, 0);
}
/*
@@ -8492,7 +8492,7 @@ rb_io_s_write(int argc, VALUE *argv, VALUE io)
static VALUE
rb_io_s_binwrite(int argc, VALUE *argv, VALUE io)
{
- io_s_write(argc, argv, 1);
+ return io_s_write(argc, argv, 1);
}
struct copy_stream_struct {