summaryrefslogtreecommitdiff
path: root/mpq
diff options
context:
space:
mode:
Diffstat (limited to 'mpq')
-rw-r--r--mpq/init.c4
1 files changed, 2 insertions, 2 deletions
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;