зеркало из https://github.com/github/ruby.git
* io.c (fill_cbuf): return MORE_CHAR_SUSPENDED when cbuf is not empty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
412e9ba174
Коммит
9efb5a9d6a
|
@ -1,3 +1,7 @@
|
|||
Sat May 28 03:04:27 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* io.c (fill_cbuf): return MORE_CHAR_SUSPENDED when cbuf is not empty.
|
||||
|
||||
Sat May 28 02:22:48 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* string.c (rb_str_bytesize): rb_str_bytesize() should use LONG2NUM().
|
||||
|
|
3
io.c
3
io.c
|
@ -1720,6 +1720,9 @@ fill_cbuf(rb_io_t *fptr, int ec_flags)
|
|||
}
|
||||
}
|
||||
}
|
||||
if (cbuf_len0 != fptr->cbuf.len)
|
||||
return MORE_CHAR_SUSPENDED;
|
||||
|
||||
return MORE_CHAR_FINISHED;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче