summaryrefslogtreecommitdiff
path: root/set_d.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-02-24 13:23:35 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-02-24 13:23:35 +0000
commit98127874b53bdb6ff58610957055bef91fbd7087 (patch)
tree7ae98077352d0cdab1f3300fd1cf2c4e0bfa0cd9 /set_d.c
parent53062736c152be21b77b11fec1a29699e6c7a30c (diff)
downloadmpfr-98127874b53bdb6ff58610957055bef91fbd7087.tar.gz
Remove some warnings.
MPFR can be compiled (but not checked!) with a C++ compiler. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2802 280ebfd0-de03-0410-8827-d642c229c3f4
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
}