diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2024-03-12 13:40:57 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2024-03-12 13:40:57 -0700 |
commit | 99b229487c2997b4b22eaef90fedfbff4d8826cc (patch) | |
tree | b31e024fed8b0ce18069e3eeb38d297fcade8643 | |
parent | f60ce91139b52f8cc19714137a02b6cbd16fa07c (diff) | |
download | zlib-99b229487c2997b4b22eaef90fedfbff4d8826cc.tar.gz zlib-99b229487c2997b4b22eaef90fedfbff4d8826cc.tar.bz2 zlib-99b229487c2997b4b22eaef90fedfbff4d8826cc.zip |
Avoid signed shift in minizip zip.c.
-rw-r--r-- | contrib/minizip/zip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/minizip/zip.c b/contrib/minizip/zip.c index d16e9ae..cbb2508 100644 --- a/contrib/minizip/zip.c +++ b/contrib/minizip/zip.c | |||
@@ -356,7 +356,7 @@ local int block_get(block_t *block) { | |||
356 | // if the end is reached. | 356 | // if the end is reached. |
357 | local long block_get2(block_t *block) { | 357 | local long block_get2(block_t *block) { |
358 | long got = block_get(block); | 358 | long got = block_get(block); |
359 | return got | ((long)block_get(block) << 8); | 359 | return got | ((unsigned long)block_get(block) << 8); |
360 | } | 360 | } |
361 | 361 | ||
362 | // Read up to len bytes from block into buf. Return the number of bytes read. | 362 | // Read up to len bytes from block into buf. Return the number of bytes read. |