diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-09 10:51:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-09 10:51:11 +0000 |
commit | 225f22cd9a2cc135652393570a32723d53e0e7e0 (patch) | |
tree | 2c87a7b1c3fecb59dbc6db6cdd90f07795535a47 /io.c | |
parent | e9f4ad970a876fa65d3476df9a85c2a28a8137c5 (diff) | |
download | ruby-225f22cd9a2cc135652393570a32723d53e0e7e0.tar.gz |
* 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
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |