summaryrefslogtreecommitdiff
path: root/mpz/mul.c
diff options
context:
space:
mode:
authorTorbjorn Granlund <torbjorng@google.com>2015-09-08 18:22:27 +0200
committerTorbjorn Granlund <torbjorng@google.com>2015-09-08 18:22:27 +0200
commitbd5cfb2912e4653c76e22cefb1b55c45414f2507 (patch)
tree19e64e2ca2346942b220ca35cd2871a4175c1d5b /mpz/mul.c
parent079be863b8e05c8a345d886cbca10d897e2a287f (diff)
downloadgmp-bd5cfb2912e4653c76e22cefb1b55c45414f2507.tar.gz
Wrap remaining limb allocations in __GMP_ALLOCATE_FUNC_LIMBS.
Diffstat (limited to 'mpz/mul.c')
-rw-r--r--mpz/mul.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpz/mul.c b/mpz/mul.c
index 59a279eca..c4389158e 100644
--- a/mpz/mul.c
+++ b/mpz/mul.c
@@ -113,7 +113,7 @@ mpz_mul (mpz_ptr w, mpz_srcptr u, mpz_srcptr v)
(*__gmp_free_func) (wp, (size_t) ALLOC (w) * GMP_LIMB_BYTES);
ALLOC (w) = wsize;
- wp = (mp_ptr) (*__gmp_allocate_func) ((size_t) wsize * GMP_LIMB_BYTES);
+ wp = __GMP_ALLOCATE_FUNC_LIMBS (wsize);
PTR (w) = wp;
}
else