8152352: Compiling warnings in zip_util.c blocks devkit to build with --with-zlib=system
authorsherman
Mon, 21 Mar 2016 15:59:27 -0700
changeset 36649 89305180130b
parent 36648 6b77fc70dabf
child 36653 3e045f3e778c
8152352: Compiling warnings in zip_util.c blocks devkit to build with --with-zlib=system Reviewed-by: naoto
jdk/src/java.base/share/native/libzip/zip_util.c
--- a/jdk/src/java.base/share/native/libzip/zip_util.c	Mon Mar 21 21:58:50 2016 +0300
+++ b/jdk/src/java.base/share/native/libzip/zip_util.c	Mon Mar 21 15:59:27 2016 -0700
@@ -1408,7 +1408,7 @@
             case Z_OK:
                 break;
             case Z_STREAM_END:
-                if (count != 0 || strm.total_out != entry->size) {
+                if (count != 0 || strm.total_out != (uInt)entry->size) {
                     *msg = "inflateFully: Unexpected end of stream";
                     inflateEnd(&strm);
                     return JNI_FALSE;
@@ -1528,7 +1528,7 @@
             case Z_OK:
                 break;
             case Z_STREAM_END:
-                if (strm.total_out != outLen) {
+                if (strm.total_out != (uInt)outLen) {
                     *pmsg = "INFLATER_inflateFully: Unexpected end of stream";
                     inflateEnd(&strm);
                     return JNI_FALSE;