diff options
author | Torbjorn Granlund <tg@gmplib.org> | 2016-08-29 16:48:20 +0200 |
---|---|---|
committer | Torbjorn Granlund <tg@gmplib.org> | 2016-08-29 16:48:20 +0200 |
commit | 9deac7786c2eebbb7bdb805a544e7f7f0f3f86d3 (patch) | |
tree | ae5c0ede128c654a480e12668b60b5625b409854 /mpq | |
parent | d6b531d0501182336bed7d7c799fee506c756867 (diff) | |
download | gmp-9deac7786c2eebbb7bdb805a544e7f7f0f3f86d3.tar.gz |
Use __GMP_ALLOCATE_FUNC_TYPE and friends.
Diffstat (limited to 'mpq')
-rw-r--r-- | mpq/get_str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpq/get_str.c b/mpq/get_str.c index 8fa0de1cd..0abfb6e02 100644 --- a/mpq/get_str.c +++ b/mpq/get_str.c @@ -51,7 +51,7 @@ mpq_get_str (char *str, int base, mpq_srcptr q) DIGITS_IN_BASE_PER_LIMB (str_alloc, ABSIZ(NUM(q)) + SIZ(DEN(q)), ABS(base)); str_alloc += 6; - str = (char *) (*__gmp_allocate_func) (str_alloc); + str = __GMP_ALLOCATE_FUNC_TYPE (str_alloc, char); } mpz_get_str (str, base, mpq_numref(q)); |