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 4bff879..ecdda6e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 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".
        * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
        * lib/frexp.c (FUNC): Likewise.
index 2538bf6..169c68f 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 7b5c9c9..7ee7486 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 385e2d1..090cf09 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).  */