1
0
Fork 0
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:
katsu 2003-04-06 09:29:21 +00:00
parent add23cc22e
commit e393f0ad16

View file

@ -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;
}