summaryrefslogtreecommitdiff
path: root/gcc/java/boehm.c
diff options
context:
space:
mode:
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-24 00:03:28 +0000
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-24 00:03:28 +0000
commit8e452f9c0c8f40aeee57cd573a9d638e53872aea (patch)
tree0507a167efbef0282a0fc2a3f187f358cfe9b0a3 /gcc/java/boehm.c
parentf8d61150ea3979ea4f36fcff728e3e252bf765b3 (diff)
downloadgcc-8e452f9c0c8f40aeee57cd573a9d638e53872aea.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85102 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/boehm.c')
-rw-r--r--gcc/java/boehm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/boehm.c b/gcc/java/boehm.c
index b806a32af25..00dc4904d5a 100644
--- a/gcc/java/boehm.c
+++ b/gcc/java/boehm.c
@@ -46,7 +46,7 @@ static void
set_bit (unsigned HOST_WIDE_INT *low, unsigned HOST_WIDE_INT *high,
unsigned int n)
{
- HOST_WIDE_INT *which;
+ unsigned HOST_WIDE_INT *which;
if (n >= HOST_BITS_PER_WIDE_INT)
{
@@ -56,7 +56,7 @@ set_bit (unsigned HOST_WIDE_INT *low, unsigned HOST_WIDE_INT *high,
else
which = low;
- *which |= (HOST_WIDE_INT) 1 << n;
+ *which |= (unsigned HOST_WIDE_INT) 1 << n;
}
/* Recursively mark reference fields. */