From bd5cfb2912e4653c76e22cefb1b55c45414f2507 Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Tue, 8 Sep 2015 18:22:27 +0200 Subject: Wrap remaining limb allocations in __GMP_ALLOCATE_FUNC_LIMBS. --- mpq/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mpq') diff --git a/mpq/init.c b/mpq/init.c index 0f526ef31..6ece98ab1 100644 --- a/mpq/init.c +++ b/mpq/init.c @@ -35,10 +35,10 @@ void mpq_init (mpq_t x) { ALLOC(NUM(x)) = 1; - PTR(NUM(x)) = (mp_ptr) (*__gmp_allocate_func) (GMP_LIMB_BYTES); + PTR(NUM(x)) = __GMP_ALLOCATE_FUNC_LIMBS (1); SIZ(NUM(x)) = 0; ALLOC(DEN(x)) = 1; - PTR(DEN(x)) = (mp_ptr) (*__gmp_allocate_func) (GMP_LIMB_BYTES); + PTR(DEN(x)) = __GMP_ALLOCATE_FUNC_LIMBS (1); PTR(DEN(x))[0] = 1; SIZ(DEN(x)) = 1; -- cgit v1.2.1