summaryrefslogtreecommitdiff
path: root/lib/msun
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2019-10-08 21:39:51 +0000
committerBrooks Davis <brooks@FreeBSD.org>2019-10-08 21:39:51 +0000
commite593620997cc1db24295398117dffca5c2a204e0 (patch)
treee1b2bdb8874a9786b162ae732f2b633b16355436 /lib/msun
parent9e14430d463ccd92a3acd5e82676ee3ccad8b0ef (diff)
downloadsrc-test2-e593620997cc1db24295398117dffca5c2a204e0.tar.gz
src-test2-e593620997cc1db24295398117dffca5c2a204e0.zip
Notes
Diffstat (limited to 'lib/msun')
-rw-r--r--lib/msun/src/s_lround.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/msun/src/s_lround.c b/lib/msun/src/s_lround.c
index 0cd3b3e6ba76..66d9183a74bc 100644
--- a/lib/msun/src/s_lround.c
+++ b/lib/msun/src/s_lround.c
@@ -49,9 +49,9 @@ __FBSDID("$FreeBSD$");
* 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 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 || \
+static const type dtype_min = (type)DTYPE_MIN - 0.5;
+static const type dtype_max = (type)DTYPE_MAX + 0.5;
+#define INRANGE(x) (dtype_max - (type)DTYPE_MAX != 0.5 || \
((x) > dtype_min && (x) < dtype_max))
dtype