Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/lgpl3/mpfr/dist/src Apply upstream r8705: fix logic...
details: https://anonhg.NetBSD.org/src/rev/f1ce2c0e56b0
branches: trunk
changeset: 346126:f1ce2c0e56b0
user: martin <martin%NetBSD.org@localhost>
date: Mon Jun 27 11:35:21 2016 +0000
description:
Apply upstream r8705: fix logic error.
Reported by Henning Petersen in PR toolchain/51283.
diffstat:
external/lgpl3/mpfr/dist/src/vasprintf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r ded6596e984d -r f1ce2c0e56b0 external/lgpl3/mpfr/dist/src/vasprintf.c
--- a/external/lgpl3/mpfr/dist/src/vasprintf.c Mon Jun 27 10:09:02 2016 +0000
+++ b/external/lgpl3/mpfr/dist/src/vasprintf.c Mon Jun 27 11:35:21 2016 +0000
@@ -1559,7 +1559,7 @@
/* fractional part */
{
np->point = MPFR_DECIMAL_POINT;
- np->fp_trailing_zeros = (spec.spec == 'g' && spec.spec == 'G') ?
+ np->fp_trailing_zeros = (spec.spec == 'g' || spec.spec == 'G') ?
spec.prec - 1 : spec.prec;
}
else if (spec.alt)
Home |
Main Index |
Thread Index |
Old Index