Skip to content

Commit

Permalink
Make pigz compatible with two-component zlib version numbers.
Browse files Browse the repository at this point in the history
zlib 1.3 (not 1.3.0) broke the zlib_vernum() function in pigz.
This commit fixes that.
  • Loading branch information
madler committed Aug 18, 2023
1 parent e1ed230 commit 907ca07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pigz.c
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,7 @@ local long zlib_vernum(void) {
}
ver++;
} while (left);
return left < 2 ? num << (left << 2) : -1;
return left < 3 ? num << (left << 2) : -1;
}

// -- check value combination routines for parallel calculation --
Expand Down

0 comments on commit 907ca07

Please sign in to comment.