summaryrefslogtreecommitdiff
path: root/mpf/get_str.c
diff options
context:
space:
mode:
authorTorbjorn Granlund <tg@gmplib.org>2016-08-29 16:48:20 +0200
committerTorbjorn Granlund <tg@gmplib.org>2016-08-29 16:48:20 +0200
commit9deac7786c2eebbb7bdb805a544e7f7f0f3f86d3 (patch)
treeae5c0ede128c654a480e12668b60b5625b409854 /mpf/get_str.c
parentd6b531d0501182336bed7d7c799fee506c756867 (diff)
downloadgmp-9deac7786c2eebbb7bdb805a544e7f7f0f3f86d3.tar.gz
Use __GMP_ALLOCATE_FUNC_TYPE and friends.
Diffstat (limited to 'mpf/get_str.c')
-rw-r--r--mpf/get_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpf/get_str.c b/mpf/get_str.c
index 682819daa..0bfd99fe4 100644
--- a/mpf/get_str.c
+++ b/mpf/get_str.c
@@ -170,7 +170,7 @@ mpf_get_str (char *dbuf, mp_exp_t *exp, int base, size_t n_digits, mpf_srcptr u)
/* We didn't get a string from the user. Allocate one (and return
a pointer to it) with space for `-' and terminating null. */
alloc_size = n_digits + 2;
- dbuf = (char *) (*__gmp_allocate_func) (n_digits + 2);
+ dbuf = __GMP_ALLOCATE_FUNC_TYPE (n_digits + 2, char);
}
if (un == 0)