From 9977034544c280b2c4a724ab4438499d91b12086 Mon Sep 17 00:00:00 2001 From: das Date: Fri, 8 Apr 2005 00:52:16 +0000 Subject: Fix a (coincidentally harmless) bug. --- lib/msun/src/s_lround.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib') 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)) -- cgit v1.1