Mercurial > gnulib
changeset 29180:660396a22e22
Don't abort if the 'long double' type has excess precision.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 26 Nov 2007 21:13:57 +0100 |
parents | 7ecf9ad39d55 |
children | ba0f7c6cd989 |
files | ChangeLog lib/vasnprintf.c |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Nov 26 06:17:07 2007 -0800 +++ b/ChangeLog Mon Nov 26 21:13:57 2007 +0100 @@ -1,3 +1,10 @@ +2007-11-26 Bruno Haible <bruno@clisp.org> + + * lib/vasnprintf.c (decode_long_double): Don't abort if the + 'long double' type has excess precision. + Reported by Jim Meyering in + <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>. + 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
--- a/lib/vasnprintf.c Mon Nov 26 06:17:07 2007 -0800 +++ b/lib/vasnprintf.c Mon Nov 26 21:13:57 2007 +0100 @@ -871,8 +871,11 @@ 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--;