aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1994-02-02 18:37:18 -0800
committerJim Wilson <wilson@gcc.gnu.org>1994-02-02 18:37:18 -0800
commit400f8e7d31bcc68610a23847a4fc90a1cca338dc (patch)
tree4763689e977bd25dddf1ace8dee01f69e5ca0589
parent94b7bf21d45ee2245b1f21c9fedd8dd82aff56bb (diff)
downloadgcc-400f8e7d31bcc68610a23847a4fc90a1cca338dc.zip
gcc-400f8e7d31bcc68610a23847a4fc90a1cca338dc.tar.gz
gcc-400f8e7d31bcc68610a23847a4fc90a1cca338dc.tar.bz2
(signed_or_unsigned_type): Check for any
INTEGRAL_TYPE_P not just INTEGER_TYPE. From-SVN: r6474
-rw-r--r--gcc/c-typeck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 5fbe530..81dca3e 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;