From b722f2b85758de237dd1a14203dd0e8f3fbea7a5 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 18 May 1994 06:46:33 +0000 Subject: [PATCH] (convert_to_real): Accept boolean values. From-SVN: r7325 --- gcc/convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)