summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--io.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 400516e582..bafb2e2eb6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Jun 2 20:05:57 2011 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (rb_io_s_write, rb_io_s_binwrite): return!!!
+
Thu Jun 2 16:29:34 2011 Shota Fukumori <sorah@tubusu.net>
* io.c: Add File.write, File.binwrite. [Feature #1081] [ruby-core:21701]
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 {