Commit 86463d5d by Richard Stallman

(default_conversion): For enum that's unsigned,

if it's at least as wide as int, convert to an unsigned type.

From-SVN: r5272
parent 75b46437
......@@ -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);
}
......
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