projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
856aa68
)
(largest_union_member): Check simple_cst_equal result against 0.
author
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 24 May 1995 19:53:53 +0000
(15:53 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 24 May 1995 19:53:53 +0000
(15:53 -0400)
From-SVN: r9806
gcc/cp/method.c
patch
|
blob
|
history
diff --git
a/gcc/cp/method.c
b/gcc/cp/method.c
index 27b98d155ae39917a3ef8800624b5de1770df804..e5fe9038f239fa3f40ed4d6de4cdd1929d40f8e0 100644
(file)
--- 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. */