From: Richard Kenner Date: Wed, 24 May 1995 19:47:11 +0000 (-0400) Subject: (finish_anon_union): Check simple_cst_equal result against 0. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7cb6357f76d59f4bb39ad22705b0b71c7252acd;p=gcc.git (finish_anon_union): Check simple_cst_equal result against 0. From-SVN: r9804 --- diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 5bbc9c8e872..fb0940e1353 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -2258,7 +2258,8 @@ finish_anon_union (anon_union_decl) /* Only write out one anon union element--choose the one that can hold them all. */ if (main_decl == NULL_TREE - && simple_cst_equal (DECL_SIZE (decl), DECL_SIZE (anon_union_decl))) + && 1 == simple_cst_equal (DECL_SIZE (decl), + DECL_SIZE (anon_union_decl))) { main_decl = decl; }