factor: primes_diff idx type consistency

* src/factor.c (factor_insert_refind):
Use idx_t for indexes into primes_diff,
for consistency with other indexes into primes_diff.
This has no practical effect unless the primes_diff
table becomes unreasonably large.
This commit is contained in:
Paul Eggert committed 2025-07-09 17:12:39 -07:00
1 parent fd458798fe
commit 845f3a6158
1 file changed
+2 -2
+2 -2
View File
@@ -717,9 +717,9 @@ static bool flag_prove_primality = PROVE_PRIMALITY;
#endif
static void
factor_insert_refind (struct factors *factors, mp_limb_t p, int i, int off)
factor_insert_refind (struct factors *factors, mp_limb_t p, idx_t i, idx_t off)
{
for (int j = 0; j < off; j++)
for (idx_t j = 0; j < off; j++)
p += primes_diff[i + j];
factor_insert (factors, p);
}