summaryrefslogtreecommitdiff
path: root/set_d.c
diff options
context:
space:
mode:
Diffstat (limited to 'set_d.c')
-rw-r--r--set_d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/set_d.c b/set_d.c
index 713326cdc..aaf8160ab 100644
--- a/set_d.c
+++ b/set_d.c
@@ -128,8 +128,8 @@ __mpfr_extract_double (mp_ptr rp, double d)
#if BITS_PER_MP_LIMB >= 64
manl = d;
#else
- manh = d;
- manl = (d - manh) * MP_BASE_AS_DOUBLE;
+ manh = (mp_limb_t) d;
+ manl = (mp_limb_t) ((d - manh) * MP_BASE_AS_DOUBLE);
#endif
}