Skip to content

Commit 99b2294

Browse files
committed
Avoid signed shift in minizip zip.c.
1 parent f60ce91 commit 99b2294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/minizip/zip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ local int block_get(block_t *block) {
356356
// if the end is reached.
357357
local long block_get2(block_t *block) {
358358
long got = block_get(block);
359-
return got | ((long)block_get(block) << 8);
359+
return got | ((unsigned long)block_get(block) << 8);
360360
}
361361

362362
// Read up to len bytes from block into buf. Return the number of bytes read.

0 commit comments

Comments
 (0)