summaryrefslogtreecommitdiff
path: root/src/set_f.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2010-12-17 11:38:36 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2010-12-17 11:38:36 +0000
commitba5a539f5ff01e9b0c778efb9be19ab5d1a0eb2c (patch)
treefb57c63ad143a23c60ec3f4b33c7b09dd01aa08e /src/set_f.c
parent856626cb99cf746529aa3107acb2c8b0ea43614d (diff)
downloadmpfr-ba5a539f5ff01e9b0c778efb9be19ab5d1a0eb2c.tar.gz
Added MPFR_TMP_LIMBS_ALLOC macro and updated the source to use it.
tools/mpfrlint: check its use instead of MPFR_TMP_ALLOC. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7300 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/set_f.c')
-rw-r--r--src/set_f.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/set_f.c b/src/set_f.c
index bbd6e5efd..f9df0bb7a 100644
--- a/src/set_f.c
+++ b/src/set_f.c
@@ -54,7 +54,7 @@ mpfr_set_f (mpfr_ptr y, mpf_srcptr x, mpfr_rnd_t rnd_mode)
unsigned long xprec = sx * GMP_NUMB_BITS;
MPFR_TMP_MARK(marker);
- tmp = (mp_limb_t*) MPFR_TMP_ALLOC(sx * BYTES_PER_MP_LIMB);
+ tmp = MPFR_TMP_LIMBS_ALLOC (sx);
if (cnt)
mpn_lshift (tmp, mx, sx, cnt);
else