diff options
author | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-02 05:28:06 +0000 |
---|---|---|
committer | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-02 05:28:06 +0000 |
commit | 7a128c21e57157d7ab93abba77d2a4f1d7fd985b (patch) | |
tree | 8d6344503572980943d557f46ef673cea6927ab7 /gcc/config/dfp-bit.c | |
parent | 114a8a4bd9b29f256ead5b126dff3f11b151fd4b (diff) | |
download | gcc-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.c | 2 |
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. */ |