tests/mpz/t-scan.c fix
Torbjorn Granlund
tg at gmplib.org
Mon Oct 10 17:08:18 CEST 2011
Marco Trudel <marco at mtsystems.ch> writes:
Looks to me like the loop is accessing "offset" once too much.
Hope that's correct and helps
Marco
--- tests/mpz/t-scan.c 2011-05-08 11:49:29.000000000 +0200
+++ tests/mpz/t-scan.c 2011-10-10 16:37:13.657829003 +0200
@@ -79,7 +79,7 @@
for (isize = 0; isize <= size; isize++)
{
- for (oindex = 0; oindex <= numberof (offset); oindex++)
+ for (oindex = 0; oindex < numberof (offset); oindex++)
{
o = offset[oindex];
if ((int) isize*GMP_NUMB_BITS < -o)
Thanks, patch applied!
(GMP repository at http://gmplib.org:8000/gmp/)
--
Torbjörn
More information about the gmp-bugs
mailing list