diff lib/vasnprintf.c @ 9489:940605ef6e9e

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 (2007-11-26)
parents 7bbddc0fae4a
children a113e473cc98
line wrap: on
line diff
--- a/lib/vasnprintf.c
+++ b/lib/vasnprintf.c
@@ -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--;