From ba5a539f5ff01e9b0c778efb9be19ab5d1a0eb2c Mon Sep 17 00:00:00 2001 From: vlefevre Date: Fri, 17 Dec 2010 11:38:36 +0000 Subject: 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 --- src/sqr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sqr.c') diff --git a/src/sqr.c b/src/sqr.c index 0db9803e5..59d52933f 100644 --- a/src/sqr.c +++ b/src/sqr.c @@ -64,7 +64,7 @@ mpfr_sqr (mpfr_ptr a, mpfr_srcptr b, mpfr_rnd_t rnd_mode) return mpfr_mul (a, b, b, rnd_mode); MPFR_TMP_MARK(marker); - tmp = (mp_limb_t *) MPFR_TMP_ALLOC((size_t) 2 * bn * BYTES_PER_MP_LIMB); + tmp = MPFR_TMP_LIMBS_ALLOC (2 * bn); /* Multiplies the mantissa in temporary allocated space */ mpn_sqr_n (tmp, MPFR_MANT(b), bn); -- cgit v1.2.1