aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2007-07-06 09:24:18 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2007-07-06 09:24:18 +0000
commitb5119fa1391d75ecd9c7e041151acb04bd6c7234 (patch)
tree55c0bb411246985213c916764c6073969a4f0d07 /gcc/c-common.c
parent106b3d40e77897e85c6e041b88b74b8a3222417e (diff)
downloadgcc-b5119fa1391d75ecd9c7e041151acb04bd6c7234.zip
gcc-b5119fa1391d75ecd9c7e041151acb04bd6c7234.tar.gz
gcc-b5119fa1391d75ecd9c7e041151acb04bd6c7234.tar.bz2
c-common.c (boolean_increment): Use correctly typed constant.
2007-07-06 Richard Guenther <rguenther@suse.de> * c-common.c (boolean_increment): Use correctly typed constant. cp/ * init.c (build_new_1): Use the correct pointer type. * typeck2.c (build_m_component_ref): Likewise. From-SVN: r126405
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index b1c20a6..0682a48 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -4348,7 +4348,7 @@ tree
boolean_increment (enum tree_code code, tree arg)
{
tree val;
- tree true_res = boolean_true_node;
+ tree true_res = build_int_cst (TREE_TYPE (arg), 1);
arg = stabilize_reference (arg);
switch (code)