Commit b722f2b8 by Jason Merrill

(convert_to_real): Accept boolean values.

From-SVN: r7325
parent b89a6f69
...@@ -85,7 +85,7 @@ convert_to_real (type, expr) ...@@ -85,7 +85,7 @@ convert_to_real (type, expr)
return build1 (flag_float_store ? CONVERT_EXPR : NOP_EXPR, return build1 (flag_float_store ? CONVERT_EXPR : NOP_EXPR,
type, expr); type, expr);
if (form == INTEGER_TYPE || form == ENUMERAL_TYPE) if (INTEGRAL_TYPE_P (TREE_TYPE (expr)))
return build1 (FLOAT_EXPR, type, expr); return build1 (FLOAT_EXPR, type, expr);
if (form == COMPLEX_TYPE) if (form == COMPLEX_TYPE)
......
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