mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* zlib.c (rb_gzreader_getc): the return value of GzipReader#getc must be unsigned.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
add23cc22e
commit
e393f0ad16
1 changed files with 1 additions and 1 deletions
|
@ -2387,7 +2387,7 @@ rb_gzreader_getc(obj)
|
|||
|
||||
dst = gzfile_read(gz, 1);
|
||||
if (!NIL_P(dst)) {
|
||||
dst = INT2FIX(RSTRING(dst)->ptr[0]);
|
||||
dst = INT2FIX((unsigned int)(RSTRING(dst)->ptr[0]) & 0xff);
|
||||
}
|
||||
return dst;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue