summaryrefslogtreecommitdiff
path: root/sqrt_ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'sqrt_ui.c')
-rw-r--r--sqrt_ui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sqrt_ui.c b/sqrt_ui.c
index a7afb983a..9a1dd5549 100644
--- a/sqrt_ui.c
+++ b/sqrt_ui.c
@@ -19,7 +19,8 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-#define MON_INIT(xp, x, p, s) xp = (mp_ptr) TMP_ALLOC(s*BYTES_PER_MP_LIMB); x -> _mp_prec = p; x -> _mp_d = xp; x -> _mp_size = s;
+#define MON_INIT(xp, x, p, s) xp = (mp_ptr) TMP_ALLOC(s*BYTES_PER_MP_LIMB); \
+ MPFR_PREC(x) = p; MPFR_MANT(x) = xp; x -> _mp_size = s;
#include <math.h>
#include <stdio.h>