diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-01-11 16:44:24 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-01-11 16:44:24 +0000 |
commit | 235fe5534072efe52607f1e3ccdddf56067c3a07 (patch) | |
tree | 16cc29c016ca47b6574a2fd82197aae9dda7902d /set_prec.c | |
parent | b0e4bef9625e3e1f017030d9d7b09be7870b4ebb (diff) | |
download | mpfr-235fe5534072efe52607f1e3ccdddf56067c3a07.tar.gz |
_mp_reallocate_func -> _gmp_reallocate_func
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@975 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set_prec.c')
-rw-r--r-- | set_prec.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/set_prec.c b/set_prec.c index 17adb5bb2..3f52e5b17 100644 --- a/set_prec.c +++ b/set_prec.c @@ -43,12 +43,8 @@ mpfr_set_prec (x, p) xsize = (p - 1)/BITS_PER_MP_LIMB + 1; /* new limb size */ if (xsize > MPFR_ABSSIZE(x)) { - MPFR_MANT(x) = (mp_ptr) (*_mp_reallocate_func) (MPFR_MANT(x), + MPFR_MANT(x) = (mp_ptr) (*__gmp_reallocate_func) (MPFR_MANT(x), MPFR_ABSSIZE(x)*BYTES_PER_MP_LIMB, xsize * BYTES_PER_MP_LIMB); - if (MPFR_MANT(x) == NULL) { - fprintf (stderr, "Error in mpfr_set_prec: no more memory available\n"); - exit (1); - } MPFR_SIZE(x) = xsize; /* new number of allocated limbs */ } |