From 14ac3bfe3cc9d33292aba4b4db564baa7b04923a Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 24 May 1995 15:53:53 -0400 Subject: [PATCH] (largest_union_member): Check simple_cst_equal result against 0. From-SVN: r9806 --- gcc/cp/method.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 27b98d155ae..e5fe9038f23 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -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. */ -- 2.30.2