summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2002-05-11 16:23:33 +0200
committertege <tege@gmplib.org>2002-05-11 16:23:33 +0200
commit10a832af192f93cdd11fc282e0fbfdb1e6de4450 (patch)
tree404189b19f64c02ef996eaba3320dcdcdd6e0a76
parentffa28ae1b6abb9deabcdf5bcbbef64b7d74051dd (diff)
downloadgmp-10a832af192f93cdd11fc282e0fbfdb1e6de4450.tar.gz
Adjust allocation of qp temporary area.
-rw-r--r--mpn/generic/rootrem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpn/generic/rootrem.c b/mpn/generic/rootrem.c
index 0244bd810..168baa9e5 100644
--- a/mpn/generic/rootrem.c
+++ b/mpn/generic/rootrem.c
@@ -84,7 +84,7 @@ mpn_rootrem (mp_ptr rootp, mp_ptr remp,
xn = (xnb + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS;
- qp = TMP_ALLOC_LIMBS (un); /* should try and reduce this allocation */
+ qp = TMP_ALLOC_LIMBS (un + 1);
xp = TMP_ALLOC_LIMBS (xn + 1);
/* Set initial root to only ones. This is an overestimate of the actual root