aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-05-24 15:53:53 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-05-24 15:53:53 -0400
commit14ac3bfe3cc9d33292aba4b4db564baa7b04923a (patch)
treea1415ef01a2949c7d7a65903ce70747d95723484 /gcc
parent856aa6871c8b2425b49704edfcac502159e78dbd (diff)
downloadgcc-14ac3bfe3cc9d33292aba4b4db564baa7b04923a.zip
gcc-14ac3bfe3cc9d33292aba4b4db564baa7b04923a.tar.gz
gcc-14ac3bfe3cc9d33292aba4b4db564baa7b04923a.tar.bz2
(largest_union_member): Check simple_cst_equal result against 0.
From-SVN: r9806
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/method.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index 27b98d1..e5fe903 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. */