diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1996-10-28 13:08:38 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1996-10-28 13:08:38 -0500 |
commit | f63f07520b6a53ac61ba1e6335cdb8f4b6bf155c (patch) | |
tree | fdc3dfaba5e2cc639067ad8b7e71ac03e5c0f14c | |
parent | 555d459c7930fb7feff4339619f2b94ffe1b3e0b (diff) | |
download | gcc-f63f07520b6a53ac61ba1e6335cdb8f4b6bf155c.zip gcc-f63f07520b6a53ac61ba1e6335cdb8f4b6bf155c.tar.gz gcc-f63f07520b6a53ac61ba1e6335cdb8f4b6bf155c.tar.bz2 |
({un,}signed_type): If can't do anything, call
signed_or_unsigned_type.
From-SVN: r13051
-rw-r--r-- | gcc/c-typeck.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 9a0030d..7014040 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 |