diff options
author | Jason Merrill <merrill@gnu.org> | 1994-05-18 06:46:33 +0000 |
---|---|---|
committer | Jason Merrill <merrill@gnu.org> | 1994-05-18 06:46:33 +0000 |
commit | b722f2b85758de237dd1a14203dd0e8f3fbea7a5 (patch) | |
tree | 9fcac478314df59691e15d4cb037052676b69471 | |
parent | b89a6f69c346a29ea2a1630881430b8941fd47cd (diff) | |
download | gcc-b722f2b85758de237dd1a14203dd0e8f3fbea7a5.tar.gz |
(convert_to_real): Accept boolean values.
From-SVN: r7325
-rw-r--r-- | gcc/convert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/convert.c b/gcc/convert.c index c34e5615ef0..2cb5990e732 100644 --- a/gcc/convert.c +++ b/gcc/convert.c @@ -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) |