1
0
mirror of https://git.savannah.gnu.org/git/coreutils.git synced 2026-10-24 02:08:57 +03:00

maint: factor: use a stricter COUNTED_BY on the list of factors

* src/factor.c (struct mp_factors): Change the COUNTED_BY to use the
nfactors member instead of nalloc.
This commit is contained in:
Collin Funk
2026-10-13 21:45:11 -07:00
parent a53cf09ca1
commit ae58eee442

View File

@@ -297,7 +297,7 @@ struct mp_factors
/* A vector of distinct prime factors, a count of the factors,
and the number of allocated slots in the vector. */
struct mp_factor *f COUNTED_BY (nalloc);
struct mp_factor *f COUNTED_BY (nfactors);
};
static void factor (struct factors *, mp_limb_t, mp_limb_t);