aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-05-24 15:46:27 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-05-24 15:46:27 -0400
commit2507f3b50d4a0c0697e25c2eeed3a71d65586f1c (patch)
treeca0a4198787878e089d7865d990ae074f9f37724 /gcc
parent364e1f1cf2270becda7f359e588b4a976ecc6e1d (diff)
downloadgcc-2507f3b50d4a0c0697e25c2eeed3a71d65586f1c.zip
gcc-2507f3b50d4a0c0697e25c2eeed3a71d65586f1c.tar.gz
gcc-2507f3b50d4a0c0697e25c2eeed3a71d65586f1c.tar.bz2
(duplicate_decls): Check simple_cst_equal result against 0.
From-SVN: r9803
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/decl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 8ca4e23..9cd44cd 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -2532,7 +2532,8 @@ duplicate_decls (newdecl, olddecl)
t1 = TREE_CHAIN (t1), t2 = TREE_CHAIN (t2), i++)
if (TREE_PURPOSE (t1) && TREE_PURPOSE (t2))
{
- if (simple_cst_equal (TREE_PURPOSE (t1), TREE_PURPOSE (t2)))
+ if (1 == simple_cst_equal (TREE_PURPOSE (t1),
+ TREE_PURPOSE (t2)))
{
if (pedantic)
{