summaryrefslogtreecommitdiff
path: root/gcc/config/dfp-bit.c
diff options
context:
space:
mode:
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-02 05:28:06 +0000
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-02 05:28:06 +0000
commit7a128c21e57157d7ab93abba77d2a4f1d7fd985b (patch)
tree8d6344503572980943d557f46ef673cea6927ab7 /gcc/config/dfp-bit.c
parent114a8a4bd9b29f256ead5b126dff3f11b151fd4b (diff)
downloadgcc-7a128c21e57157d7ab93abba77d2a4f1d7fd985b.tar.gz
2007-03-02 Ben Elliston <bje@au.ibm.com>
PR 30992 * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122469 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/dfp-bit.c')
-rw-r--r--gcc/config/dfp-bit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/dfp-bit.c b/gcc/config/dfp-bit.c
index 927804c1def..2fa89996967 100644
--- a/gcc/config/dfp-bit.c
+++ b/gcc/config/dfp-bit.c
@@ -450,7 +450,7 @@ DFP_TO_INT (DFP_C_TYPE x)
/* Rescale if the exponent is less than zero. */
decNumberToIntegralValue (&n2, &n1, &context);
/* Get a value to use for the quantize call. */
- decNumberFromString (&qval, (char *) "1.0", &context);
+ decNumberFromString (&qval, (char *) "1.", &context);
/* Force the exponent to zero. */
decNumberQuantize (&n1, &n2, &qval, &context);
/* Get a string, which at this point will not include an exponent. */