(signed_or_unsigned_type): If already right signedness, return.
From-SVN: r13055
This commit is contained in:
parent
ef9d910bb4
commit
3c9675679a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user