summaryrefslogtreecommitdiff
path: root/set_d.c
diff options
context:
space:
mode:
authorhanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4>1999-06-16 18:07:21 +0000
committerhanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4>1999-06-16 18:07:21 +0000
commit67351f7209d3bebb554be2ab951e1c35232f0808 (patch)
tree7777986ae82f22747cc060fafdf478ad3f83ec96 /set_d.c
parent0c620eaac2c318c594d945e830b27f44b7d58b3c (diff)
downloadmpfr-67351f7209d3bebb554be2ab951e1c35232f0808.tar.gz
Bug dans set_d(0) ; la mantisse n'est pas initialisee a 0 correctement.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@81 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set_d.c')
-rw-r--r--set_d.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/set_d.c b/set_d.c
index 1bd0465f2..9e145ea10 100644
--- a/set_d.c
+++ b/set_d.c
@@ -213,6 +213,7 @@ mpfr_set_d(mpfr_t r, double d, unsigned char rnd_mode)
if (d == 0)
{
EXP(r) = 0;
+ for (cnt = 0; cnt < MPFR_LIMBS_PER_DOUBLE; cnt++) { MANT(r)[cnt] = 0; }
return;
}
else if (isnan(d)) { SET_NAN(r); return; }