diff options
author | hanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4> | 1999-06-16 18:07:21 +0000 |
---|---|---|
committer | hanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4> | 1999-06-16 18:07:21 +0000 |
commit | 67351f7209d3bebb554be2ab951e1c35232f0808 (patch) | |
tree | 7777986ae82f22747cc060fafdf478ad3f83ec96 /set_d.c | |
parent | 0c620eaac2c318c594d945e830b27f44b7d58b3c (diff) | |
download | mpfr-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |