diff options
author | Manfred Hollstein <manfred@gcc.gnu.org> | 1998-03-12 01:01:10 +0000 |
---|---|---|
committer | Manfred Hollstein <manfred@gcc.gnu.org> | 1998-03-12 01:01:10 +0000 |
commit | bd2328c62adc28923d675548e368fd0af7537e2c (patch) | |
tree | 4696593fc1adb97d825bc39888767c40d097195f | |
parent | 90b4710b243d238c57972be3058f539fe97b2849 (diff) | |
download | gcc-bd2328c62adc28923d675548e368fd0af7537e2c.zip gcc-bd2328c62adc28923d675548e368fd0af7537e2c.tar.gz gcc-bd2328c62adc28923d675548e368fd0af7537e2c.tar.bz2 |
typeck.c (build_binary_op_nodefault): Correctly place parens around && and || in expression.
�
* typeck.c (build_binary_op_nodefault): Correctly place parens around
&& and || in expression.
From-SVN: r18504
-rw-r--r-- | gcc/cp/typeck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index f5e7971..e2d40f5 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -3822,10 +3822,10 @@ build_binary_op_nodefault (code, orig_op0, orig_op1, error_code) else if ((resultcode == EQ_EXPR || resultcode == NE_EXPR) && ((op0_signed && TREE_CODE (orig_op1) == INTEGER_CST && int_fits_type_p (orig_op1, - signed_type (result_type)) + signed_type (result_type))) || (op1_signed && TREE_CODE (orig_op0) == INTEGER_CST && int_fits_type_p (orig_op0, - signed_type (result_type)))))) + signed_type (result_type))))) /* OK */; else warning ("comparison between signed and unsigned"); |