projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b89a6f6
)
(convert_to_real): Accept boolean values.
author
Jason Merrill
<merrill@gnu.org>
Wed, 18 May 1994 06:46:33 +0000
(06:46 +0000)
committer
Jason Merrill
<merrill@gnu.org>
Wed, 18 May 1994 06:46:33 +0000
(06:46 +0000)
From-SVN: r7325
gcc/convert.c
patch
|
blob
|
history
diff --git
a/gcc/convert.c
b/gcc/convert.c
index c34e5615ef0baf0a21892c56c1b4af59888f116e..2cb5990e732627341defc239978fa7de99c86c7c 100644
(file)
--- 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)