diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io.c | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -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] @@ -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 { |