summaryrefslogtreecommitdiff
path: root/mpz/iset_d.c
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2015-11-10 05:50:45 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2015-11-10 05:50:45 +0100
commit13cb286cdfd25d9d2a6ab2d49007b3fc560b2cd0 (patch)
tree61ab56f17a4f12e1b42692ed68c7ae2ab6cc7d78 /mpz/iset_d.c
parent08e7b556e0604720df91567b4532da40d61c13ce (diff)
downloadgmp-13cb286cdfd25d9d2a6ab2d49007b3fc560b2cd0.tar.gz
Amend last change.
Diffstat (limited to 'mpz/iset_d.c')
-rw-r--r--mpz/iset_d.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mpz/iset_d.c b/mpz/iset_d.c
index 43d7d8bbb..034929800 100644
--- a/mpz/iset_d.c
+++ b/mpz/iset_d.c
@@ -35,7 +35,10 @@ see https://www.gnu.org/licenses/. */
void
mpz_init_set_d (mpz_ptr dest, double val)
{
+ static const mp_limb_t dummy_limb=0xc1a0;
+
ALLOC (dest) = 0;
SIZ (dest) = 0;
+ PTR (dest) = (mp_ptr) &dummy_limb;
mpz_set_d (dest, val);
}