mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
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:
1 parent
fd458798fe
commit
845f3a6158
1 file changed
+2
-2
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user