summaryrefslogtreecommitdiff
path: root/src/math/__rem_pio2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/__rem_pio2.c')
-rw-r--r--src/math/__rem_pio2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/__rem_pio2.c b/src/math/__rem_pio2.c
index a40db9fc..d403f81c 100644
--- a/src/math/__rem_pio2.c
+++ b/src/math/__rem_pio2.c
@@ -118,7 +118,7 @@ int __rem_pio2(double x, double *y)
if (ix < 0x413921fb) { /* |x| ~< 2^20*(pi/2), medium size */
medium:
/* rint(x/(pi/2)), Assume round-to-nearest. */
- fn = x*invpio2 + toint - toint;
+ fn = (double_t)x*invpio2 + toint - toint;
n = (int32_t)fn;
r = x - fn*pio2_1;
w = fn*pio2_1t; /* 1st round, good to 85 bits */