From: Richard Kenner Date: Mon, 28 Oct 1996 22:17:00 +0000 (-0500) Subject: (signed_or_unsigned_type): If already right signedness, return. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3c9675679a3326ed57d41190ac3f536073500ff8;p=gcc.git (signed_or_unsigned_type): If already right signedness, return. From-SVN: r13055 --- 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;