aboutsummaryrefslogtreecommitdiff
path: root/py/mpz.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-02-16 15:55:36 +1100
committerDamien George <damien.p.george@gmail.com>2017-02-16 16:51:16 +1100
commiteb90edb5c05dd613c144e2b66dd303f2248593e5 (patch)
tree30a12d41c850cc61fcc84a58ca19632b0ab35e5f /py/mpz.c
parentdcdcc43dad0e1124a69e20fb6d008c7ffaf0e42a (diff)
py/mpz: Remove obsolete declaration of mpz_as_str_size.
Diffstat (limited to 'py/mpz.c')
-rw-r--r--py/mpz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mpz.c b/py/mpz.c
index 7f2b25767..1090d58c7 100644
--- a/py/mpz.c
+++ b/py/mpz.c
@@ -1677,7 +1677,7 @@ mp_float_t mpz_as_float(const mpz_t *i) {
#if 0
this function is unused
char *mpz_as_str(const mpz_t *i, mp_uint_t base) {
- char *s = m_new(char, mpz_as_str_size(i, base, NULL, '\0'));
+ char *s = m_new(char, mp_int_format_size(mpz_max_num_bits(i), base, NULL, '\0'));
mpz_as_str_inpl(i, base, NULL, 'a', '\0', s);
return s;
}