| commit | 03ca1c12db67d8ee0c0bcbd3cf2202b2acbe641e | [log] [tgz] |
|---|---|---|
| author | Thomas Klausner <tk@giga.or.at> | Wed Sep 24 01:02:15 2014 +0200 |
| committer | Thomas Klausner <tk@giga.or.at> | Wed Sep 24 01:02:15 2014 +0200 |
| tree | 51eb90c71ae5546410a93d58b695cb9b96e88b3b | |
| parent | 71f26c6915a1c0bb7d6c8e3831481a829e05dce6 [diff] [blame] |
Add some casts for gcc 4.8.3 with more-than-default warnings enabled.
diff --git a/lib/zip_source_crc.c b/lib/zip_source_crc.c index f96cb3e..8e2edc2 100644 --- a/lib/zip_source_crc.c +++ b/lib/zip_source_crc.c
@@ -122,8 +122,8 @@ else { zip_uint64_t i, nn; - for (i=0; i < n; i += nn) { - nn = ZIP_MIN(UINT_MAX, n-i); + for (i=0; i < (zip_uint64_t)n; i += nn) { + nn = ZIP_MIN(UINT_MAX, (zip_uint64_t)n-i); ctx->crc = (zip_uint32_t)crc32(ctx->crc, (const Bytef *)data+i, (uInt)nn); }