aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf-io.c
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2004-07-24 00:03:28 +0000
committerMike Stump <mrs@gcc.gnu.org>2004-07-24 00:03:28 +0000
commit0e7d217a97d7002639bad1e6af71cc1021a92ed0 (patch)
tree0507a167efbef0282a0fc2a3f187f358cfe9b0a3 /gcc/java/jcf-io.c
parentef05818b76a645f094e89f0804611d19c677f03f (diff)
downloadgcc-0e7d217a97d7002639bad1e6af71cc1021a92ed0.zip
gcc-0e7d217a97d7002639bad1e6af71cc1021a92ed0.tar.gz
gcc-0e7d217a97d7002639bad1e6af71cc1021a92ed0.tar.bz2
boehm.c (set_bit): Improve type safety wrt unsignedness.
* boehm.c (set_bit): Improve type safety wrt unsignedness. * gjavah.c (throwable_p, decode_signature_piece, print_full_cxx_name, print_include, add_namelet, add_class_decl, process_file): Likewise. * jcf-dump.c (main): Likewise. * jcf-io.c (read_zip_member): Likewise. * jcf-parse.c (HANDLE_CONSTANT_Utf8, get_constant, give_name_to_class, get_class_constant): Likewise. * jcf-write.c (find_constant_wide, push_long_const, generate_classfile): Likewise. * lex.c (java_new_lexer, java_read_char, cxx_keyword_p): Likewise. * parse.y (read_import_dir): Likewise. * typeck.c (parse_signature_type): Likewise. * verify.c (verify_jvm_instructions): Likewise. * zextract.c (find_zip_file_start, read_zip_archive): Likewise. From-SVN: r85102
Diffstat (limited to 'gcc/java/jcf-io.c')
-rw-r--r--gcc/java/jcf-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c
index 2a22e0a..0b21092 100644
--- a/gcc/java/jcf-io.c
+++ b/gcc/java/jcf-io.c
@@ -215,7 +215,7 @@ read_zip_member (JCF *jcf, ZipDirectory *zipd, ZipFile *zipf)
jcf->read_ptr = jcf->buffer;
jcf->read_end = jcf->buffer_end;
buffer = ALLOC (zipd->size);
- d_stream.next_in = buffer;
+ d_stream.next_in = (unsigned char *) buffer;
d_stream.avail_in = zipd->size;
if (lseek (zipf->fd, zipd->filestart, 0) < 0
|| read (zipf->fd, buffer, zipd->size) != (long) zipd->size)