Commit 400f8e7d by Jim Wilson

(signed_or_unsigned_type): Check for any

INTEGRAL_TYPE_P not just INTEGER_TYPE.

From-SVN: r6474
parent 94b7bf21
...@@ -718,7 +718,7 @@ signed_or_unsigned_type (unsignedp, type) ...@@ -718,7 +718,7 @@ signed_or_unsigned_type (unsignedp, type)
int unsignedp; int unsignedp;
tree type; tree type;
{ {
if (TREE_CODE (type) != INTEGER_TYPE) if (! INTEGRAL_TYPE_P (type))
return type; return type;
if (TYPE_PRECISION (type) == TYPE_PRECISION (signed_char_type_node)) if (TYPE_PRECISION (type) == TYPE_PRECISION (signed_char_type_node))
return unsignedp ? unsigned_char_type_node : signed_char_type_node; return unsignedp ? unsigned_char_type_node : signed_char_type_node;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment