summaryrefslogtreecommitdiff
path: root/mpn
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2002-04-22 20:59:46 +0200
committertege <tege@gmplib.org>2002-04-22 20:59:46 +0200
commiteb524811bd105dd0997d921ee37c4f88c580ad83 (patch)
treecc0da734f83e036a39c53ad2f87ae2e1de42c953 /mpn
parentb3c9c15ab84d3e22d367ddb31021bfa0fd2251bc (diff)
downloadgmp-eb524811bd105dd0997d921ee37c4f88c580ad83.tar.gz
Fix fencepost error in STAT code.
Diffstat (limited to 'mpn')
-rw-r--r--mpn/generic/gcdext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpn/generic/gcdext.c b/mpn/generic/gcdext.c
index b10ad7077..73553a573 100644
--- a/mpn/generic/gcdext.c
+++ b/mpn/generic/gcdext.c
@@ -32,7 +32,7 @@ MA 02111-1307, USA. */
#endif
#if STAT
-int arr[BITS_PER_MP_LIMB];
+int arr[BITS_PER_MP_LIMB + 1];
#endif
@@ -582,7 +582,7 @@ mpn_gcd (mp_ptr gp,
#endif
#if STAT
- {int i; for (i = 0; i < BITS_PER_MP_LIMB; i++) printf ("%d:%d\n", i, arr[i]);}
+ {int i; for (i = 0; i <= BITS_PER_MP_LIMB; i++) printf ("%d:%d\n", i, arr[i]);}
#endif
if (vsize == 0)