1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* io.c (rb_io_s_write, rb_io_s_binwrite): return!!!

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2011-06-02 11:06:40 +00:00
parent 7b3948f055
commit fd8010fc0a
2 changed files with 6 additions and 2 deletions

View file

@ -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]

4
io.c
View file

@ -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 {