diff options
author | Mike Stump <mrs@apple.com> | 2004-07-24 00:03:28 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2004-07-24 00:03:28 +0000 |
commit | 0e7d217a97d7002639bad1e6af71cc1021a92ed0 (patch) | |
tree | 0507a167efbef0282a0fc2a3f187f358cfe9b0a3 /gcc/java/lex.c | |
parent | ef05818b76a645f094e89f0804611d19c677f03f (diff) | |
download | gcc-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/lex.c')
-rw-r--r-- | gcc/java/lex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c index de9b222..77e38f8 100644 --- a/gcc/java/lex.c +++ b/gcc/java/lex.c @@ -264,7 +264,7 @@ java_new_lexer (FILE *finput, const char *encoding) in[1] = 0xbb; in[2] = 0xbf; - inp = in; + inp = (char *) in; inc = 3; outp = (char *) &result; outc = 2; @@ -377,7 +377,7 @@ java_read_char (java_lexer *lex) in_save = inbytesleft; out_save = out_count; inp = &lex->buffer[lex->first]; - outp = &lex->out_buffer[lex->out_last]; + outp = (char *) &lex->out_buffer[lex->out_last]; ir = iconv (lex->handle, (ICONV_CONST char **) &inp, &inbytesleft, &outp, &out_count); @@ -2031,7 +2031,7 @@ cxx_keyword_p (const char *name, int length) { int kwl = strlen (cxx_keywords[mid]); int min_length = kwl > length ? length : kwl; - int r = utf8_cmp (name, min_length, cxx_keywords[mid]); + int r = utf8_cmp ((const unsigned char *) name, min_length, cxx_keywords[mid]); if (r == 0) { |