(default_conversion): For enum that's unsigned,
if it's at least as wide as int, convert to an unsigned type. From-SVN: r5272
This commit is contained in:
parent
75b4643788
commit
86463d5d64
@ -944,7 +944,9 @@ default_conversion (exp)
|
||||
{
|
||||
type = type_for_size (MAX (TYPE_PRECISION (type),
|
||||
TYPE_PRECISION (integer_type_node)),
|
||||
(flag_traditional && TREE_UNSIGNED (type)));
|
||||
((flag_traditional
|
||||
|| TYPE_PRECISION (type) >= TYPE_PRECISION (integer_type_node))
|
||||
&& TREE_UNSIGNED (type)));
|
||||
return convert (type, exp);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user