summaryrefslogtreecommitdiff
path: root/mpf/sqrt.c
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2009-11-28 14:21:25 +0100
committerTorbjorn Granlund <tege@gmplib.org>2009-11-28 14:21:25 +0100
commitc0b484d57eb0edbde652c025824b7fe13988617e (patch)
tree66064997b362f69432ab5414c76e4138ed585c7e /mpf/sqrt.c
parent1d7cbbab78a484653c097be84776ea94b09bca83 (diff)
downloadgmp-c0b484d57eb0edbde652c025824b7fe13988617e.tar.gz
Use TMP_ALLOC_LIMBS consistently.
Diffstat (limited to 'mpf/sqrt.c')
-rw-r--r--mpf/sqrt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpf/sqrt.c b/mpf/sqrt.c
index 19a7ca08b..dce9aff46 100644
--- a/mpf/sqrt.c
+++ b/mpf/sqrt.c
@@ -82,7 +82,7 @@ mpf_sqrt (mpf_ptr r, mpf_srcptr u)
/* root size is ceil(tsize/2), this will be our desired "prec" limbs */
ASSERT ((tsize + 1) / 2 == prec);
- tp = (mp_ptr) TMP_ALLOC (tsize * BYTES_PER_MP_LIMB);
+ tp = TMP_ALLOC_LIMBS (tsize);
if (usize > tsize)
{