diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 1999-06-25 16:20:11 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 1999-06-25 16:20:11 +0000 |
commit | 2b63ff48fd2df719e33ae4d69a0a8f0266d35b4f (patch) | |
tree | 74515b1ba5888eb16cf6ffb25714c85a3ab5a581 /get_str.c | |
parent | ca57663950e80b89d5bd4ec240465dc9c7865220 (diff) | |
download | mpfr-2b63ff48fd2df719e33ae4d69a0a8f0266d35b4f.tar.gz |
use GMP allocate/free functions instead of malloc/free
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@201 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'get_str.c')
-rw-r--r-- | get_str.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -105,7 +105,7 @@ char *mpfr_get_str(char *str, mp_exp_t *expptr, int base, size_t n, /* computes the number of characters needed */ q = ((SIGN(op)<0) ? 1 : 0) + n + 1; - if (str==NULL) str0=str=malloc(q); + if (str==NULL) str0=str=(*_mp_allocate_func)(q); if (SIGN(op)<0) *str++='-'; mpz_get_str(str, base, bz); /* n digits of mantissa */ if (strlen(str)==n+1) f++; /* possible due to rounding */ |