diff options
author | Bruno Haible <bruno@clisp.org> | 2007-11-26 21:13:57 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-11-26 21:13:57 +0100 |
commit | c874d16fd2914f62c797d082c3f91a0031b1f8ca (patch) | |
tree | ac15df8e8f3b1c405c34251b0e309805f819774b /lib/vasnprintf.c | |
parent | 9dd135f95f19447c737596f2b8d6bc8df6902b11 (diff) | |
download | gnulib-c874d16fd2914f62c797d082c3f91a0031b1f8ca.tar.gz |
Don't abort if the 'long double' type has excess precision.
Diffstat (limited to 'lib/vasnprintf.c')
-rw-r--r-- | lib/vasnprintf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vasnprintf.c b/lib/vasnprintf.c index d6b012a4ac..f26b42be60 100644 --- a/lib/vasnprintf.c +++ b/lib/vasnprintf.c @@ -871,8 +871,11 @@ decode_long_double (long double x, int *ep, mpn_t *mp) abort (); m.limbs[--i] = (hi << (GMP_LIMB_BITS / 2)) | lo; } +#if 0 /* On FreeBSD 6.1/x86, 'long double' numbers sometimes have excess + precision. */ if (!(y == 0.0L)) abort (); +#endif /* Normalise. */ while (m.nlimbs > 0 && m.limbs[m.nlimbs - 1] == 0) m.nlimbs--; |