summaryrefslogtreecommitdiff
path: root/gcc/config/dfp-bit.c
diff options
context:
space:
mode:
authorjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-29 23:11:01 +0000
committerjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-29 23:11:01 +0000
commitd25c4bbcd17c4a86fa1dd01f368d7ee5786819a2 (patch)
tree460fcbb5b4c94a2e03e3fcfa5ef3fd44fe1b5c85 /gcc/config/dfp-bit.c
parent0e01480038285ed2dab7d5be3c6c353a8a0db556 (diff)
downloadgcc-d25c4bbcd17c4a86fa1dd01f368d7ee5786819a2.tar.gz
* dfp-bit.c (DFP_TO_INT): Fix rounding mode.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119335 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 9ffdd8a13f9..0d4308efc85 100644
--- a/gcc/config/dfp-bit.c
+++ b/gcc/config/dfp-bit.c
@@ -394,7 +394,7 @@ DFP_TO_INT (DFP_C_TYPE x)
decContextDefault (&context, CONTEXT_INIT);
/* Need non-default rounding mode here. */
- DFP_INIT_ROUNDMODE (context.round);
+ context.round = DEC_ROUND_DOWN;
HOST_TO_IEEE (x, &s);
TO_INTERNAL (&s, &n1);