]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
typeck.c (build_binary_op_nodefault): Correctly place parens around && and || in...
authorManfred Hollstein <manfred@gcc.gnu.org>
Thu, 12 Mar 1998 01:01:10 +0000 (01:01 +0000)
committerManfred Hollstein <manfred@gcc.gnu.org>
Thu, 12 Mar 1998 01:01:10 +0000 (01:01 +0000)

* typeck.c (build_binary_op_nodefault): Correctly place parens around
&& and || in expression.

From-SVN: r18504

gcc/cp/typeck.c

index f5e79717a2f9cb3a97cfabeb2d1861129945d94f..e2d40f5bb47c293126c64883d47bef58e7911350 100644 (file)
@@ -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");