summaryrefslogtreecommitdiff
path: root/gcc/convert.c
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-03-31 07:02:59 +0000
committerRichard Stallman <rms@gnu.org>1993-03-31 07:02:59 +0000
commitd7889764961d8de3eac9063dea538411668f49ba (patch)
tree29f4af3e6df031ead454728a129ccbc602b67105 /gcc/convert.c
parente8650b8fccd4c08cf9ba7e0a05804d6d108f8e6a (diff)
downloadgcc-d7889764961d8de3eac9063dea538411668f49ba.tar.gz
(convert_to_real): Pass mode arg to REAL_VALUE_ATOF.
From-SVN: r3947
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;
}
}