summaryrefslogtreecommitdiff
path: root/mpf/init.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 /mpf/init.c
parent079be863b8e05c8a345d886cbca10d897e2a287f (diff)
downloadgmp-bd5cfb2912e4653c76e22cefb1b55c45414f2507.tar.gz
Wrap remaining limb allocations in __GMP_ALLOCATE_FUNC_LIMBS.
Diffstat (limited to 'mpf/init.c')
-rw-r--r--mpf/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpf/init.c b/mpf/init.c
index d8590f27a..0e428d3d4 100644
--- a/mpf/init.c
+++ b/mpf/init.c
@@ -38,5 +38,5 @@ mpf_init (mpf_ptr r)
r->_mp_size = 0;
r->_mp_exp = 0;
r->_mp_prec = prec;
- r->_mp_d = (mp_ptr) (*__gmp_allocate_func) ((size_t) (prec + 1) * GMP_LIMB_BYTES);
+ r->_mp_d = __GMP_ALLOCATE_FUNC_LIMBS (prec + 1);
}