(finish_anon_union): Check simple_cst_equal result against 0.
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 24 May 1995 19:47:11 +0000 (15:47 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 24 May 1995 19:47:11 +0000 (15:47 -0400)
From-SVN: r9804

gcc/cp/decl2.c

index 5bbc9c8e872a7c0db98e3027c1f146494a8c1b00..fb0940e13537b07c7ab9b22a8c0d1f4aca688693 100644 (file)
@@ -2258,7 +2258,8 @@ finish_anon_union (anon_union_decl)
       /* Only write out one anon union element--choose the one that
         can hold them all.  */
       if (main_decl == NULL_TREE
-         && simple_cst_equal (DECL_SIZE (decl), DECL_SIZE (anon_union_decl)))
+         && 1 == simple_cst_equal (DECL_SIZE (decl),
+                                   DECL_SIZE (anon_union_decl)))
        {
          main_decl = decl;
        }