From ae58eee442ed77177b07827677802410c6542af1 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Tue, 13 Oct 2026 21:45:11 -0700 Subject: [PATCH] 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. --- src/factor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/factor.c b/src/factor.c index ac9fe1b86..2bfa18ecc 100644 --- a/src/factor.c +++ b/src/factor.c @@ -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);