coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/2] maint: factor: use a stricter COUNTED_BY on the list of fact


From: Collin Funk
Subject: [PATCH 2/2] maint: factor: use a stricter COUNTED_BY on the list of factors
Date: Tue, 13 Oct 2026 22:01:15 -0700

* 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);
-- 
2.56.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]