From f577532561b5ba4aa03c0592e36aedf7af51db7d Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 23 Nov 1993 17:32:21 -0500 Subject: [PATCH] (check_format_info): When we have INTEGER_TYPEs... (check_format_info): When we have INTEGER_TYPEs, save result of signed_type or unsigned_type for later comparison with the various forms of char types. From-SVN: r6146 --- gcc/c-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/c-common.c b/gcc/c-common.c index cb6e845c56e..57e2e413815 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -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 -- 2.30.2