summaryrefslogtreecommitdiff
path: root/nbtheory.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2003-03-25 02:11:53 +0000
committerweidai <weidai11@users.noreply.github.com>2003-03-25 02:11:53 +0000
commit2ccaf2ef1d78727194b59d986b491e717c508917 (patch)
treec0941e611df79f42cd10632c1cd2fd4dc2895078 /nbtheory.cpp
parenta7d2ffa2b3d5148f28ef1232d11b2b2ad5068d77 (diff)
downloadcryptopp-git-2ccaf2ef1d78727194b59d986b491e717c508917.tar.gz
minor changes
Diffstat (limited to 'nbtheory.cpp')
-rw-r--r--nbtheory.cpp2
1 files changed, 1 insertions, 1 deletions
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)