From 3c9675679a3326ed57d41190ac3f536073500ff8 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 28 Oct 1996 17:17:00 -0500 Subject: [PATCH] (signed_or_unsigned_type): If already right signedness, return. From-SVN: r13055 --- gcc/c-typeck.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 7014040c7ce..fa647dbce60 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -776,7 +776,8 @@ signed_or_unsigned_type (unsignedp, type) int unsignedp; tree type; { - if (! INTEGRAL_TYPE_P (type)) + if (! INTEGRAL_TYPE_P (type) + || TREE_UNSIGNED (type) == unsignedp) return type; if (TYPE_PRECISION (type) == TYPE_PRECISION (signed_char_type_node)) return unsignedp ? unsigned_char_type_node : signed_char_type_node; -- 2.30.2