diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-05-17 23:39:21 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-05-17 23:39:21 +0200 |
commit | d41ee33d9dbae70d94462b2d89d317a6dc3634b2 (patch) | |
tree | 13225d3a679842a2ced8e4cdb0af3811dc89e524 /mpz/set_d.c | |
parent | 947c073e4c2ddf72bc5bd53b8d60534d3edc5109 (diff) | |
download | gmp-d41ee33d9dbae70d94462b2d89d317a6dc3634b2.tar.gz |
* mpz/set_d.c, mpq/set_d.c: Use LIMBS_PER_DOUBLE for the output of
__gmp_extract_double. Reported by Henrik Johansson.
Diffstat (limited to 'mpz/set_d.c')
-rw-r--r-- | mpz/set_d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mpz/set_d.c b/mpz/set_d.c index 7b1a906e4..2c566f5a3 100644 --- a/mpz/set_d.c +++ b/mpz/set_d.c @@ -1,6 +1,6 @@ /* mpz_set_d(integer, val) -- Assign INTEGER with a double value VAL. -Copyright 1995, 1996, 2000, 2001 Free Software Foundation, Inc. +Copyright 1995, 1996, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -26,7 +26,7 @@ void mpz_set_d (mpz_ptr r, double d) { int negative; - mp_limb_t tp[3]; + mp_limb_t tp[LIMBS_PER_DOUBLE]; mp_ptr rp; mp_size_t rn; |