summaryrefslogtreecommitdiff
path: root/libm/s_expm1.c
diff options
context:
space:
mode:
Diffstat (limited to 'libm/s_expm1.c')
-rw-r--r--libm/s_expm1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libm/s_expm1.c b/libm/s_expm1.c
index 8e51ae748..85defefa4 100644
--- a/libm/s_expm1.c
+++ b/libm/s_expm1.c
@@ -159,7 +159,7 @@ double expm1(double x)
else
{hi = x + ln2_hi; lo = -ln2_lo; k = -1;}
} else {
- k = invln2*x+((xsb==0)?0.5:-0.5);
+ k = (int32_t)(invln2*x+((xsb==0)?0.5:-0.5));
t = k;
hi = x - t*ln2_hi; /* t*ln2_hi is exact here */
lo = t*ln2_lo;