From: Bruno Haible Date: Mon, 26 Nov 2007 20:13:57 +0000 (+0100) Subject: Don't abort if the 'long double' type has excess precision. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c874d16fd2914f62c797d082c3f91a0031b1f8ca;p=pspp Don't abort if the 'long double' type has excess precision. --- diff --git a/ChangeLog b/ChangeLog index 2097a26125..57f1f1d4e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-11-26 Bruno Haible + + * lib/vasnprintf.c (decode_long_double): Don't abort if the + 'long double' type has excess precision. + Reported by Jim Meyering in + . + 2007-11-25 Ralf Wildenhues * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi: 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--;