changeset 13931:f89fab6f60ad

8152352: Compiling warnings in zip_util.c blocks devkit to build with --with-zlib=system Reviewed-by: naoto
author sherman
date Mon, 21 Mar 2016 15:59:27 -0700
parents de1f0e168eeb
children 3ad0ed497418
files src/java.base/share/native/libzip/zip_util.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/native/libzip/zip_util.c	Mon Mar 21 21:58:50 2016 +0300
+++ b/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;