diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-10-02 08:44:58 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-10-02 08:44:58 +0000 |
commit | 253b2b161b5243a556a67e7ccce760ac314a206f (patch) | |
tree | c68d5fd57931a1291038371e25deda5c28bd9886 /print_raw.c | |
parent | a04e726916edbafec108c6884b9520d6dd26cdfe (diff) | |
download | mpfr-253b2b161b5243a556a67e7ccce760ac314a206f.tar.gz |
malloc -> *_mp_allocate_func or TMP_ALLOC
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@778 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'print_raw.c')
-rw-r--r-- | print_raw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print_raw.c b/print_raw.c index eff0a4dff..b6e680a8e 100644 --- a/print_raw.c +++ b/print_raw.c @@ -81,11 +81,11 @@ mpfr_print_raw(x) + 11 for exponent (including sign) = 17 + ABSSIZE(x) * BITS_PER_MP_LIMB */ - str = (char *) malloc((17 + ABSSIZE(x) * BITS_PER_MP_LIMB)*sizeof(char)); + str = (char *) (*_mp_allocate_func) ((17 + ABSSIZE(x) * BITS_PER_MP_LIMB)*sizeof(char)); mpfr_get_str_raw(str, x); printf("%s", str); - free(str); + (*_mp_free_func) (str, (17 + ABSSIZE(x) * BITS_PER_MP_LIMB)*sizeof(char)); } } |