decl.c (walk_vtables_r): Fixed typo that caused result to never get a nonzero value.
authorMatt Austern <austern@apple.com>
Wed, 2 Oct 2002 16:00:33 +0000 (16:00 +0000)
committerMatt Austern <austern@gcc.gnu.org>
Wed, 2 Oct 2002 16:00:33 +0000 (16:00 +0000)
* cp/decl.c (walk_vtables_r): Fixed typo that caused result to
never get a nonzero value.

From-SVN: r57741

gcc/ChangeLog
gcc/cp/decl.c

index 68197d6d898e7b8910b054c36fc10cf5db940496..eca95941c4bd8b19fda7362c721b4a6bccb70f9a 100644 (file)
@@ -1,3 +1,7 @@
+2002-10-02  Matt Austern  <austern@apple.com>
+       * cp/decl.c (walk_vtables_r): Fixed typo that caused result to
+       never get a nonzero value.
+       
 Wed Oct  2 17:01:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
 
        * i386.c (print_operand_address): Use RIP addressing for offsetted
index 7375fde724013c5d795b7d22b7e9f5a85eddf7b6..4c8dbc408760450a6c669a3002d146fde337bc9c 100644 (file)
@@ -1793,7 +1793,7 @@ walk_vtables_r (namespace, data)
   int result = 0;
 
   for (; decl ; decl = TREE_CHAIN (decl))
-    result != (*f) (&decl, d);
+    result |= (*f) (&decl, d);
 
   return result;
 }