(signed_or_unsigned_type): If already right signedness, return.

From-SVN: r13055
This commit is contained in:
Richard Kenner 1996-10-28 17:17:00 -05:00
parent ef9d910bb4
commit 3c9675679a

View File

@ -776,7 +776,8 @@ signed_or_unsigned_type (unsignedp, type)
int unsignedp;
tree type;
{
if (! INTEGRAL_TYPE_P (type))
if (! INTEGRAL_TYPE_P (type)
|| TREE_UNSIGNED (type) == unsignedp)
return type;
if (TYPE_PRECISION (type) == TYPE_PRECISION (signed_char_type_node))
return unsignedp ? unsigned_char_type_node : signed_char_type_node;