From 2ccaf2ef1d78727194b59d986b491e717c508917 Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 25 Mar 2003 02:11:53 +0000 Subject: minor changes --- nbtheory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nbtheory.cpp') diff --git a/nbtheory.cpp b/nbtheory.cpp index 852beb57..8689cea7 100644 --- a/nbtheory.cpp +++ b/nbtheory.cpp @@ -440,7 +440,7 @@ bool FirstPrime(Integer &p, const Integer &max, const Integer &equiv, const Inte else pItr = primeTable; - while (pItr < primeTable+primeTableSize && *pItr%mod != equiv) + while (pItr < primeTable+primeTableSize && !(*pItr%mod == equiv && (!pSelector || pSelector->IsAcceptable(*pItr)))) ++pItr; if (pItr < primeTable+primeTableSize) -- cgit v1.2.1