https://bugs.gentoo.org/470838 --- a/tests/mpz/t-scan.c +++ b/tests/mpz/t-scan.c @@ -84,7 +84,7 @@ check_ref (void) 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)