From: Manfred Hollstein Date: Thu, 12 Mar 1998 01:01:10 +0000 (+0000) Subject: typeck.c (build_binary_op_nodefault): Correctly place parens around && and || in... X-Git-Tag: prereleases/egcs-1.1-prerelease~2117 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bd2328c62adc28923d675548e368fd0af7537e2c;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index f5e79717a2f9..e2d40f5bb47c 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");