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

gcc/cp/method.c

index 27b98d155ae39917a3ef8800624b5de1770df804..e5fe9038f239fa3f40ed4d6de4cdd1929d40f8e0 100644 (file)
@@ -1999,7 +1999,7 @@ largest_union_member (type)
   tree f, type_size = TYPE_SIZE (type);
 
   for (f = TYPE_FIELDS (type); f; f = TREE_CHAIN (f))
-    if (simple_cst_equal (DECL_SIZE (f), type_size))
+    if (simple_cst_equal (DECL_SIZE (f), type_size) == 1)
       return f;
 
   /* We should always find one.  */