1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

The cast must use uint32_t. [ruby-core:34481]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-01-14 04:54:51 +00:00
parent ec9a859c76
commit a2e9ec244e

View file

@ -2169,7 +2169,7 @@ gzfile_check_footer(struct gzfile *gz)
if (gz->crc != crc) {
rb_raise(cCRCError, "invalid compressed data -- crc error");
}
if ((int32_t)gz->z.stream.total_out != length) {
if ((uint32_t)gz->z.stream.total_out != length) {
rb_raise(cLengthError, "invalid compressed data -- length error");
}
}