(signed_or_unsigned_type): Check for any
authorJim Wilson <wilson@gcc.gnu.org>
Thu, 3 Feb 1994 02:37:18 +0000 (18:37 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 3 Feb 1994 02:37:18 +0000 (18:37 -0800)
INTEGRAL_TYPE_P not just INTEGER_TYPE.

From-SVN: r6474

gcc/c-typeck.c

index 5fbe53087c5e56e3aecb4d436ab4e72eafad4d81..81dca3ef5a7701dcb8ff5d5a7ac4aa1cb922e90d 100644 (file)
@@ -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;