diff options
author | Richard Guenther <rguenther@suse.de> | 2007-07-06 09:24:18 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2007-07-06 09:24:18 +0000 |
commit | b5119fa1391d75ecd9c7e041151acb04bd6c7234 (patch) | |
tree | 55c0bb411246985213c916764c6073969a4f0d07 /gcc/c-common.c | |
parent | 106b3d40e77897e85c6e041b88b74b8a3222417e (diff) | |
download | gcc-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.c | 2 |
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) |