From d9cd580560f5ba3bd4c669d78321eb9947f4d568 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 8 Oct 2007 00:01:02 +0200 Subject: [PATCH] Fix type of TWO_MANT_DIG. --- ChangeLog | 7 +++++++ lib/ceil.c | 2 +- lib/floor.c | 2 +- lib/trunc.c | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) 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). */ -- 2.11.0