From: Jim Wilson Date: Thu, 3 Feb 1994 02:37:18 +0000 (-0800) Subject: (signed_or_unsigned_type): Check for any X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=400f8e7d31bcc68610a23847a4fc90a1cca338dc;p=gcc.git (signed_or_unsigned_type): Check for any INTEGRAL_TYPE_P not just INTEGER_TYPE. From-SVN: r6474 --- diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 5fbe53087c5..81dca3ef5a7 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -718,7 +718,7 @@ signed_or_unsigned_type (unsignedp, type) int unsignedp; tree type; { - if (TREE_CODE (type) != INTEGER_TYPE) + if (! INTEGRAL_TYPE_P (type)) return type; if (TYPE_PRECISION (type) == TYPE_PRECISION (signed_char_type_node)) return unsignedp ? unsigned_char_type_node : signed_char_type_node;