(convert_to_real): Accept boolean values.

From-SVN: r7325
This commit is contained in:
Jason Merrill 1994-05-18 06:46:33 +00:00
parent b89a6f69c3
commit b722f2b857

View File

@ -85,7 +85,7 @@ convert_to_real (type, expr)
return build1 (flag_float_store ? CONVERT_EXPR : NOP_EXPR,
type, expr);
if (form == INTEGER_TYPE || form == ENUMERAL_TYPE)
if (INTEGRAL_TYPE_P (TREE_TYPE (expr)))
return build1 (FLOAT_EXPR, type, expr);
if (form == COMPLEX_TYPE)