From: Bruno Haible Date: Sun, 7 Oct 2007 22:01:02 +0000 (+0200) Subject: Fix type of TWO_MANT_DIG. X-Git-Tag: v0.0~111 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=d9cd580560f5ba3bd4c669d78321eb9947f4d568;hp=c100c6342c673e5ef9fdaa2d6a7955eeadb6ca5a;p=gnulib.git Fix type of TWO_MANT_DIG. --- diff --git a/ChangeLog b/ChangeLog index 4bff879c4..ecdda6e74 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2007-10-07 Bruno Haible + * 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 + 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. diff --git a/lib/ceil.c b/lib/ceil.c index 2538bf64d..169c68fe5 100644 --- a/lib/ceil.c +++ b/lib/ceil.c @@ -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). */ diff --git a/lib/floor.c b/lib/floor.c index 7b5c9c9e3..7ee748601 100644 --- a/lib/floor.c +++ b/lib/floor.c @@ -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). */ diff --git a/lib/trunc.c b/lib/trunc.c index 385e2d139..090cf09d8 100644 --- a/lib/trunc.c +++ b/lib/trunc.c @@ -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). */