summaryrefslogtreecommitdiff
path: root/ext/zlib
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-14 04:54:51 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-14 04:54:51 +0000
commita2e9ec244e1c1b6355b9404f9573c6de44ff9e1a (patch)
treea146ec0d63d2e8eaf5ecd35655ff1a7896b556b4 /ext/zlib
parentec9a859c76ce2819105e704aef892e41fa71877e (diff)
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
Diffstat (limited to 'ext/zlib')
-rw-r--r--ext/zlib/zlib.c2
1 files changed, 1 insertions, 1 deletions
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");
}
}