summaryrefslogtreecommitdiff
path: root/gcc/convert.c
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1993-03-31 07:02:59 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1993-03-31 07:02:59 +0000
commit2157cd43d9d8098eba1211cc888921cf0a822e4f (patch)
tree29f4af3e6df031ead454728a129ccbc602b67105 /gcc/convert.c
parent9259b14de750b96cdc0d7cdfcb5bacde94580eb6 (diff)
downloadgcc-2157cd43d9d8098eba1211cc888921cf0a822e4f.tar.gz
(convert_to_real): Pass mode arg to REAL_VALUE_ATOF.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3947 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/convert.c')
-rw-r--r--gcc/convert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/convert.c b/gcc/convert.c
index a063a6e88e1..62bcaf2b3f2 100644
--- a/gcc/convert.c
+++ b/gcc/convert.c
@@ -100,7 +100,7 @@ convert_to_real (type, expr)
{
register tree tem = make_node (REAL_CST);
TREE_TYPE (tem) = type;
- TREE_REAL_CST (tem) = REAL_VALUE_ATOF ("0.0");
+ TREE_REAL_CST (tem) = REAL_VALUE_ATOF ("0.0", TYPE_MODE (type));
return tem;
}
}