OSDN Git Service

(check_format_info): Avoid ?: conditional for function to be called.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 10 Oct 1993 05:28:35 +0000 (05:28 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 10 Oct 1993 05:28:35 +0000 (05:28 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5704 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-common.c

index 2af1ea9..19fa266 100644 (file)
@@ -865,8 +865,9 @@ check_format_info (info, params)
          /* Don't warn about differences merely in signedness.  */
          && !(TREE_CODE (wanted_type) == INTEGER_TYPE
               && TREE_CODE (cur_type) == INTEGER_TYPE
-              && (wanted_type == (TREE_UNSIGNED (wanted_type)
-                                  ? unsigned_type : signed_type) (cur_type))))
+              && (TREE_UNSIGNED (wanted_type)
+                  ? wanted_type == unsigned_type (cur_type)
+                  : wanted_type == signed_type (cur_type))))
        {
          register char *this;
          register char *that;