зеркало из https://github.com/github/ruby.git
* io.c (rb_io_getline): should not treat char as negative value.
[ruby-dev:24460] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e9f4ad970a
Коммит
225f22cd9a
|
@ -1,3 +1,8 @@
|
|||
Sat Oct 9 19:50:36 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* io.c (rb_io_getline): should not treat char as negative value.
|
||||
[ruby-dev:24460]
|
||||
|
||||
Fri Oct 8 21:36:56 2004 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/fileutils.rb (fu_traverse): return value of Dir.entries is
|
||||
|
|
2
io.c
2
io.c
|
@ -1405,7 +1405,7 @@ rb_io_getline(rs, fptr)
|
|||
swallow(fptr, '\n');
|
||||
}
|
||||
else if (rslen == 1) {
|
||||
return rb_io_getline_fast(fptr, RSTRING(rs)->ptr[0]);
|
||||
return rb_io_getline_fast(fptr, (unsigned char)RSTRING(rs)->ptr[0]);
|
||||
}
|
||||
else {
|
||||
rsptr = RSTRING(rs)->ptr;
|
||||
|
|
Загрузка…
Ссылка в новой задаче