summaryrefslogtreecommitdiff
path: root/gcc/dfp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/dfp.c')
-rw-r--r--gcc/dfp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dfp.c b/gcc/dfp.c
index 5072264cb50..f6a538731db 100644
--- a/gcc/dfp.c
+++ b/gcc/dfp.c
@@ -137,7 +137,7 @@ decimal_to_decnumber (const REAL_VALUE_TYPE *r, decNumber *dn)
/* Fix up sign bit. */
if (r->sign != decNumberIsNegative (dn))
- decNumberNegate (dn);
+ dn->bits ^= DECNEG;
}
/* Encode a real into an IEEE 754R decimal32 type. */