({un,}signed_type): If can't do anything, call
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 28 Oct 1996 18:08:38 +0000 (13:08 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 28 Oct 1996 18:08:38 +0000 (13:08 -0500)
signed_or_unsigned_type.

From-SVN: r13051

gcc/c-typeck.c

index 9a0030d5a43ea48cc8f5ab607df6ce0d9118c151..7014040c7ce41d1878d719e3cc23ff503c1d9e45 100644 (file)
@@ -735,7 +735,8 @@ unsigned_type (type)
     return unsigned_intHI_type_node;
   if (type1 == intQI_type_node)
     return unsigned_intQI_type_node;
-  return type;
+
+  return signed_or_unsigned_type (1, type);
 }
 
 /* Return a signed type the same as TYPE in other respects.  */
@@ -763,7 +764,8 @@ signed_type (type)
     return intHI_type_node;
   if (type1 == unsigned_intQI_type_node)
     return intQI_type_node;
-  return type;
+
+  return signed_or_unsigned_type (0, type);
 }
 
 /* Return a type the same as TYPE except unsigned or