From f63f07520b6a53ac61ba1e6335cdb8f4b6bf155c Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 28 Oct 1996 13:08:38 -0500 Subject: [PATCH] ({un,}signed_type): If can't do anything, call signed_or_unsigned_type. From-SVN: r13051 --- gcc/c-typeck.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 9a0030d5a43..7014040c7ce 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -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 -- 2.30.2