summaryrefslogtreecommitdiff
path: root/mpq
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2015-12-28 18:52:48 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2015-12-28 18:52:48 +0100
commit48104988e246e2dbc9e1f44cac65a9fc7cfab995 (patch)
tree17e366ee263b64adf14e58638d05befd37bc6af9 /mpq
parenta3de8572f59aa6f0f3807e5381fbfc7484a5f433 (diff)
downloadgmp-48104988e246e2dbc9e1f44cac65a9fc7cfab995.tar.gz
mpq/set_str.c: Use __GMP_FREE_FUNC_TYPE
Diffstat (limited to 'mpq')
-rw-r--r--mpq/set_str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpq/set_str.c b/mpq/set_str.c
index 930fe5576..24cc83a19 100644
--- a/mpq/set_str.c
+++ b/mpq/set_str.c
@@ -1,6 +1,6 @@
/* mpq_set_str -- string to mpq conversion.
-Copyright 2001, 2002 Free Software Foundation, Inc.
+Copyright 2001, 2002, 2015 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -60,7 +60,7 @@ mpq_set_str (mpq_ptr q, const char *str, int base)
memcpy (num, str, numlen);
num[numlen] = '\0';
ret = mpz_set_str (mpq_numref(q), num, base);
- (*__gmp_free_func) (num, numlen+1);
+ __GMP_FREE_FUNC_TYPE (num, numlen+1, char);
if (ret != 0)
return ret;