OSDN Git Service

(check_format_info): When we have INTEGER_TYPEs, save result of
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Nov 1993 22:32:21 +0000 (22:32 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Nov 1993 22:32:21 +0000 (22:32 +0000)
signed_type or unsigned_type for later comparison with the various
forms of char types.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6146 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-common.c

index cb6e845..57e2e41 100644 (file)
@@ -901,8 +901,8 @@ check_format_info (info, params)
          && !(TREE_CODE (wanted_type) == INTEGER_TYPE
               && TREE_CODE (cur_type) == INTEGER_TYPE
               && (TREE_UNSIGNED (wanted_type)
-                  ? wanted_type == unsigned_type (cur_type)
-                  : wanted_type == signed_type (cur_type)))
+                  ? wanted_type == (cur_type = unsigned_type (cur_type))
+                  : wanted_type == (cur_type = signed_type (cur_type))))
          /* Likewise, "signed char", "unsigned char" and "char" are
             equivalent but the above test won't consider them equivalent.  */
          && ! (wanted_type == char_type_node