diff options
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1278,7 +1278,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; |