]> git.pld-linux.org Git - packages/zlib.git/blob - java-regr-workaround.patch
add workaround for regression in java's jar util; rel 2
[packages/zlib.git] / java-regr-workaround.patch
1 diff --git a/crc32.c b/crc32.c
2 index a1bdce5..748b7ba 100644
3 --- a/crc32.c
4 +++ b/crc32.c
5 @@ -19,6 +19,7 @@
6    MAKECRCH can be #defined to write out crc32.h. A main() routine is also
7    produced, so that this one source file can be compiled to an executable.
8   */
9 +#include <limits.h>
10  
11  #ifdef MAKECRCH
12  #  include <stdio.h>
13 @@ -1065,7 +1066,12 @@ unsigned long ZEXPORT crc32(crc, buf, len)
14      const unsigned char FAR *buf;
15      uInt len;
16  {
17 +/* if sizeof(unsigned long) > 4 */
18 +#if ULONG_MAX > 0xffffffffUL
19 +    return crc32_z(crc & 0xffffffffUL, buf, len);
20 +#else
21      return crc32_z(crc, buf, len);
22 +#endif
23  }
24  
25  /* ========================================================================= */
This page took 0.026629 seconds and 3 git commands to generate.