summaryrefslogtreecommitdiff
path: root/mpz/iset_ui.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/iset_ui.c
parent079be863b8e05c8a345d886cbca10d897e2a287f (diff)
downloadgmp-bd5cfb2912e4653c76e22cefb1b55c45414f2507.tar.gz
Wrap remaining limb allocations in __GMP_ALLOCATE_FUNC_LIMBS.
Diffstat (limited to 'mpz/iset_ui.c')
-rw-r--r--mpz/iset_ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpz/iset_ui.c b/mpz/iset_ui.c
index 0d43c6841..55da84fcd 100644
--- a/mpz/iset_ui.c
+++ b/mpz/iset_ui.c
@@ -41,7 +41,7 @@ mpz_init_set_ui (mpz_ptr dest, unsigned long int val)
if (val > GMP_NUMB_MAX)
{
ALLOC (dest) = 2;
- PTR (dest) = (mp_ptr) (*__gmp_allocate_func) (GMP_LIMB_BYTES*2);
+ PTR (dest) = __GMP_ALLOCATE_FUNC_LIMBS (2);
PTR (dest)[1] = val >> GMP_NUMB_BITS;
size = 2;
}
@@ -49,7 +49,7 @@ mpz_init_set_ui (mpz_ptr dest, unsigned long int val)
#endif
{
ALLOC (dest) = 1;
- PTR (dest) = (mp_ptr) (*__gmp_allocate_func) (GMP_LIMB_BYTES);
+ PTR (dest) = __GMP_ALLOCATE_FUNC_LIMBS (1);
size = val != 0;
}