summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2005-04-08 00:52:16 +0000
committerdas <das@FreeBSD.org>2005-04-08 00:52:16 +0000
commit9977034544c280b2c4a724ab4438499d91b12086 (patch)
tree296bfa3e69eb93562d12a0b7a27387725ed4e6bc /lib
parent3ccc179f2bb19d13b2cabc3ca223b7ef84198936 (diff)
downloadFreeBSD-src-9977034544c280b2c4a724ab4438499d91b12086.zip
FreeBSD-src-9977034544c280b2c4a724ab4438499d91b12086.tar.gz
Fix a (coincidentally harmless) bug.
Diffstat (limited to 'lib')
-rw-r--r--lib/msun/src/s_lround.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/msun/src/s_lround.c b/lib/msun/src/s_lround.c
index 5101bbb..3cff489 100644
--- a/lib/msun/src/s_lround.c
+++ b/lib/msun/src/s_lround.c
@@ -44,12 +44,11 @@ __FBSDID("$FreeBSD$");
* of the form xxx.5; they are "out of range" because lround() rounds away
* from 0. On the other hand, if type has less precision than dtype, then
* all values that are out of range are integral, so we might as well assume
- * that everything is in range. (The correct condition in this case is
- * harder to express.) At compile time, INRANGE(x) should reduce to two
- * floating-point comparisons in the former case, or TRUE otherwise.
+ * that everything is in range. At compile time, INRANGE(x) should reduce to
+ * two floating-point comparisons in the former case, or TRUE otherwise.
*/
-static const double dtype_min = DTYPE_MIN - 0.5;
-static const double dtype_max = DTYPE_MAX + 0.5;
+static const type dtype_min = DTYPE_MIN - 0.5;
+static const type dtype_max = DTYPE_MAX + 0.5;
#define INRANGE(x) (dtype_max - DTYPE_MAX != 0.5 || \
((x) > dtype_min && (x) < dtype_max))
OpenPOWER on IntegriCloud