diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-04-29 11:24:37 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-04-29 11:24:37 +0000 |
commit | 962584ea56fd1919d5f16782663e524af6885a74 (patch) | |
tree | fad43c4cf163205e8ae258a3f5f5ccc0f9af3e54 /gcc/java/jcf-io.c | |
parent | 31e54bc5f4228c569b389e8130fd9948596dfcbf (diff) | |
download | gcc-962584ea56fd1919d5f16782663e524af6885a74.zip gcc-962584ea56fd1919d5f16782663e524af6885a74.tar.gz gcc-962584ea56fd1919d5f16782663e524af6885a74.tar.bz2 |
jcf-io.c (read_zip_member): Cast to long in comparison with signed value.
* jcf-io.c (read_zip_member): Cast to long in comparison with
signed value.
* jvspec.c (lang_specific_driver): Initialize variables.
* mangle.c (find_compression_record_match): Likewise.
* typeck.c (build_null_signature): Provide static prototype. Mark
parameter with ATTRIBUTE_UNUSED.
* verify.c (verify_jvm_instructions): Initialize variable.
From-SVN: r41671
Diffstat (limited to 'gcc/java/jcf-io.c')
-rw-r--r-- | gcc/java/jcf-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c index 655e381..f254438 100644 --- a/gcc/java/jcf-io.c +++ b/gcc/java/jcf-io.c @@ -192,7 +192,7 @@ DEFUN(read_zip_member, (jcf, zipd, zipf), jcf->read_ptr = jcf->buffer; jcf->read_end = jcf->buffer_end; if (lseek (zipf->fd, zipd->filestart, 0) < 0 - || read (zipf->fd, jcf->buffer, zipd->size) != zipd->size) + || read (zipf->fd, jcf->buffer, zipd->size) != (long) zipd->size) return -2; } else @@ -213,7 +213,7 @@ DEFUN(read_zip_member, (jcf, zipd, zipf), d_stream.next_in = buffer; d_stream.avail_in = zipd->size; if (lseek (zipf->fd, zipd->filestart, 0) < 0 - || read (zipf->fd, buffer, zipd->size) != zipd->size) + || read (zipf->fd, buffer, zipd->size) != (long) zipd->size) return -2; /* Handle NO_HEADER using undocumented zlib feature. This is a very common hack. */ |