From 6ada3468d803bafc01989224c2668a118da27c1e Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 19 May 1999 11:03:36 +0000 Subject: natInflater.cc (inflate): Cast `len' to unsigned. * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned. Include . * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned. Include . (update): Fail in default case. Always initialize `strat'. From-SVN: r27028 --- libjava/java/util/zip/natInflater.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libjava/java/util/zip/natInflater.cc') diff --git a/libjava/java/util/zip/natInflater.cc b/libjava/java/util/zip/natInflater.cc index b33ab50..4b83835 100644 --- a/libjava/java/util/zip/natInflater.cc +++ b/libjava/java/util/zip/natInflater.cc @@ -13,6 +13,7 @@ details. */ #include #include +#include #include #include @@ -104,7 +105,7 @@ java::util::zip::Inflater::inflate (jbyteArray buf, jint off, jint len) { case Z_STREAM_END: is_finished = true; - if (s->avail_out == len) + if (s->avail_out == (unsigned int) len) return -1; break; -- cgit v1.1