oops
authorJason Merrill <merrill@gnu.org>
Mon, 3 Apr 1995 23:16:19 +0000 (23:16 +0000)
committerJason Merrill <merrill@gnu.org>
Mon, 3 Apr 1995 23:16:19 +0000 (23:16 +0000)
From-SVN: r9308

gcc/c-typeck.c

index 20c653a2e52c9f57232d87796e390fbf2098a00c..b6e9a6b972b6e7d0fd723e7b80f5930cf694d78d 100644 (file)
@@ -2455,6 +2455,9 @@ build_binary_op (code, orig_op0, orig_op1, convert_p)
                 all the values of the unsigned type.  */
              if (! TREE_UNSIGNED (result_type))
                /* OK */;
+              /* Do not warn if both operands are unsigned.  */
+              else if (op0_signed == op1_signed)
+                /* OK */;
              /* Do not warn if the signed quantity is an unsuffixed
                 integer literal (or some static constant expression
                 involving such literals) and it is non-negative.  */