From d41ee33d9dbae70d94462b2d89d317a6dc3634b2 Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Fri, 17 May 2002 23:39:21 +0200 Subject: * mpz/set_d.c, mpq/set_d.c: Use LIMBS_PER_DOUBLE for the output of __gmp_extract_double. Reported by Henrik Johansson. --- mpq/set_d.c | 4 ++-- mpz/set_d.c | 4 ++-- 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; -- cgit v1.2.1