зеркало из https://github.com/github/ruby.git
* io.c (rb_io_s_binread): offset argument was wrongly passed to
internal IO#read call. [ruby-core:18810] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
705b8b41eb
Коммит
9bf27f6b17
|
@ -1,3 +1,8 @@
|
|||
Wed Sep 24 11:18:33 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* io.c (rb_io_s_binread): offset argument was wrongly passed to
|
||||
internal IO#read call. [ruby-core:18810]
|
||||
|
||||
Wed Sep 24 07:38:23 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||
|
||||
* vm_core.h: ruby/ruby.h should be included at the very first
|
||||
|
|
2
io.c
2
io.c
|
@ -7006,7 +7006,7 @@ rb_io_s_binread(int argc, VALUE *argv, VALUE io)
|
|||
arg.io = rb_io_open(argv[0], rb_str_new_cstr("rb:ASCII-8BIT"), Qnil, Qnil);
|
||||
if (NIL_P(arg.io)) return Qnil;
|
||||
arg.argv = argv+1;
|
||||
arg.argc = (argc > 2) ? 2 : argc;
|
||||
arg.argc = (argc > 1) ? 1 : 0;
|
||||
if (!NIL_P(offset)) {
|
||||
rb_io_seek(arg.io, offset, SEEK_SET);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче