view src/java.base/share/native/libzip/zlib/patches/ChangeLog_java @ 16744:dab92e4bd4ef

8175053: March 5 builds failed on Windows/install repo after JDK-8173207 Reviewed-by: mchung
author sherman
date Wed, 15 Feb 2017 22:50:35 -0800
parents b035f72cddfc
children 160ce50dd2e8
line wrap: on
line source
(1) renamed adler32.c -> zadler32.c, zcrc32c -> zcrc32.c

(2) zconf.h:
    - added _LP64 to make uLong a 32-bit int on 64-bit platform
    uLong -> 32-bit int

--------------------------
35,37d10
< /* for _LP64 */
< #include <sys/types.h>
<
421,424d393
<
< #ifdef _LP64
< typedef unsigned int  uLong;  /* 32 bits or more */
< #else
426d394
< #endif
--------------------------

(3) updated crc32.c/crc32(), crc32_z()
   unsigned long      -> uLong

--------------------------

226,227c202,203
< uLong ZEXPORT crc32_z(crc, buf, len)
<     uLong crc;
---
> unsigned long ZEXPORT crc32_z(crc, buf, len)
>     unsigned long crc;
244c220
<             return (uLong)crc32_little(crc, buf, len);
---
>             return crc32_little(crc, buf, len);
246c222
<             return (uLong)crc32_big(crc, buf, len);
---
>             return crc32_big(crc, buf, len);
261,262c237,238
< uLong ZEXPORT crc32(crc, buf, len)
<     uLong crc;
---
> unsigned long ZEXPORT crc32(crc, buf, len)
>     unsigned long crc;

--------------------------

(4) gzread.c

--------------------------
343c319
<             n = (unsigned)len;
---
>             n = len;
424c400
<     len = (unsigned)gz_read(state, buf, len);
---
>     len = gz_read(state, buf, len);
496c472
<     ret = (int)gz_read(state, buf, 1);
---
>     ret = gz_read(state, buf, 1);
--------------------------

(5) gzwrite.c

--------------------------
236c212
<                 copy = (unsigned)len;
---
>                 copy = len;
256c232
<                 n = (unsigned)len;
---
>                 n = len;
--------------------------