summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2002-05-17 23:39:21 +0200
committerKevin Ryde <user42@zip.com.au>2002-05-17 23:39:21 +0200
commitd41ee33d9dbae70d94462b2d89d317a6dc3634b2 (patch)
tree13225d3a679842a2ced8e4cdb0af3811dc89e524
parent947c073e4c2ddf72bc5bd53b8d60534d3edc5109 (diff)
downloadgmp-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.
-rw-r--r--mpq/set_d.c4
-rw-r--r--mpz/set_d.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/mpq/set_d.c b/mpq/set_d.c
index c3d580a63..a5bd12aac 100644
--- a/mpq/set_d.c
+++ b/mpq/set_d.c
@@ -1,6 +1,6 @@
/* mpq_set_d(mpq_t q, double d) -- Set q to d without rounding.
-Copyright 2000 Free Software Foundation, Inc.
+Copyright 2000, 2002 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -32,7 +32,7 @@ mpq_set_d (mpq_ptr dest, double d)
{
int negative;
mp_exp_t exp;
- mp_limb_t tp[3];
+ mp_limb_t tp[LIMBS_PER_DOUBLE];
mp_ptr np, dp;
mp_size_t nn, dn;
int c;
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;