(default_conversion): Don't expect type_promotes_to to

return a main variant.

From-SVN: r8276
This commit is contained in:
Jason Merrill 1994-10-15 00:32:58 +00:00
parent 2f4f907dcc
commit fffba94c90

View File

@ -1306,7 +1306,7 @@ default_conversion (exp)
if (INTEGRAL_CODE_P (code))
{
tree t = type_promotes_to (type);
if (t != TYPE_MAIN_VARIANT (type))
if (t != type)
return convert (t, exp);
}
if (flag_traditional