From a2e9ec244e1c1b6355b9404f9573c6de44ff9e1a Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 14 Jan 2011 04:54:51 +0000 Subject: 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 --- ext/zlib/zlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 36fc29fa18..1c14411096 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -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"); } } -- cgit v1.2.3