From: Richard Kenner Date: Wed, 24 May 1995 19:53:53 +0000 (-0400) Subject: (largest_union_member): Check simple_cst_equal result against 0. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14ac3bfe3cc9d33292aba4b4db564baa7b04923a;p=gcc.git (largest_union_member): Check simple_cst_equal result against 0. From-SVN: r9806 --- 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. */