summaryrefslogtreecommitdiff
path: root/set_prec.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-01-11 16:44:24 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-01-11 16:44:24 +0000
commit235fe5534072efe52607f1e3ccdddf56067c3a07 (patch)
tree16cc29c016ca47b6574a2fd82197aae9dda7902d /set_prec.c
parentb0e4bef9625e3e1f017030d9d7b09be7870b4ebb (diff)
downloadmpfr-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.c6
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 */
}