Fix type of TWO_MANT_DIG.
authorBruno Haible <bruno@clisp.org>
Sun, 7 Oct 2007 22:01:02 +0000 (00:01 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 7 Oct 2007 22:01:02 +0000 (00:01 +0200)
ChangeLog
lib/ceil.c
lib/floor.c
lib/trunc.c

index 4bff879c4adce1d9cddbc848ffc47db7800214ce..ecdda6e746df7a43f711bdc66b2689bd0f35223b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-10-07  Bruno Haible  <bruno@clisp.org>
+
+       * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
+       * floor.c (TWO_MANT_DIG): Likewise.
+       * ceil.c (TWO_MANT_DIG): Likewise.
+       Reported by Ben Pfaff.
+
 2007-10-07  Bruno Haible  <bruno@clisp.org>
 
        Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
index 2538bf64d412720275960a58995f09d5b3bdc0fb..169c68fe5e09dac269e1575f0381ccf48c00a95a 100644 (file)
@@ -41,7 +41,7 @@
 #endif
 
 /* 2^(MANT_DIG-1).  */
-static const double TWO_MANT_DIG =
+static const DOUBLE TWO_MANT_DIG =
   /* Assume MANT_DIG <= 5 * 31.
      Use the identity
        n = floor(n/5) + floor((n+1)/5) + ... + floor((n+4)/5).  */
index 7b5c9c9e33dcd1b3ccf6b33c8bb12adbd4c6d9fa..7ee748601daeae96d4740eabcdbf1b845b1ab405 100644 (file)
@@ -41,7 +41,7 @@
 #endif
 
 /* 2^(MANT_DIG-1).  */
-static const double TWO_MANT_DIG =
+static const DOUBLE TWO_MANT_DIG =
   /* Assume MANT_DIG <= 5 * 31.
      Use the identity
        n = floor(n/5) + floor((n+1)/5) + ... + floor((n+4)/5).  */
index 385e2d139cdf03cc4b4cd94c50be9ea534f425e1..090cf09d800fa45a87f009e9ecaa932744385a22 100644 (file)
@@ -41,7 +41,7 @@
 #endif
 
 /* 2^(MANT_DIG-1).  */
-static const double TWO_MANT_DIG =
+static const DOUBLE TWO_MANT_DIG =
   /* Assume MANT_DIG <= 5 * 31.
      Use the identity
        n = floor(n/5) + floor((n+1)/5) + ... + floor((n+4)/5).  */