diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index ef180dc390cf..e68ffe3bc185 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2005-02-08 Marcin Dalecki + + * expr.c (add_type_assertion): Use the proper enumeration type, + since this is what htab_find_slot() is expecting. + 2005-02-06 Joseph S. Myers * gcj.texi: Update copyright dates. diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 626b9bcadd26..a8ae7c612fe2 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -458,7 +458,7 @@ add_type_assertion (tree class, int assertion_code, tree op1, tree op2) as.op1 = op1; as.op2 = op2; - as_pp = htab_find_slot (assertions_htab, &as, true); + as_pp = htab_find_slot (assertions_htab, &as, INSERT); /* Don't add the same assertion twice. */ if (*as_pp)