summaryrefslogtreecommitdiff
path: root/mpq
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 /mpq
parent079be863b8e05c8a345d886cbca10d897e2a287f (diff)
downloadgmp-bd5cfb2912e4653c76e22cefb1b55c45414f2507.tar.gz
Wrap remaining limb allocations in __GMP_ALLOCATE_FUNC_LIMBS.
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;