expr.c (add_type_assertion): Use the proper enumeration type, since this is what...
authorMarcin Dalecki <martin@dalecki.de>
Tue, 8 Feb 2005 19:14:39 +0000 (20:14 +0100)
committerTom Tromey <tromey@gcc.gnu.org>
Tue, 8 Feb 2005 19:14:39 +0000 (19:14 +0000)
2005-02-08  Marcin Dalecki  <martin@dalecki.de>

* expr.c (add_type_assertion): Use the proper enumeration type,
since this is what htab_find_slot() is expecting.

From-SVN: r94743

gcc/java/ChangeLog
gcc/java/expr.c

index ef180dc390cff23b7f3be00c36facb4a7633d48e..e68ffe3bc185f0d4007852d56e8a1a555f2097ec 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-08  Marcin Dalecki  <martin@dalecki.de>
+
+       * 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  <joseph@codesourcery.com>
 
        * gcj.texi: Update copyright dates.
index 626b9bcadd262b44bf659910270a0926b7b109fa..a8ae7c612fe266e0493cb62fd62559e1ef6886c7 100644 (file)
@@ -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)