diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-03-25 02:11:53 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-03-25 02:11:53 +0000 |
commit | 79694912becd37f5f0077464350f3db55dd2ca7c (patch) | |
tree | c0941e611df79f42cd10632c1cd2fd4dc2895078 /nbtheory.cpp | |
parent | d1302bdf601282b27a681b121b2663841db92353 (diff) | |
download | cryptopp-79694912becd37f5f0077464350f3db55dd2ca7c.tar.gz |
minor changes
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@53 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'nbtheory.cpp')
-rw-r--r-- | nbtheory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nbtheory.cpp b/nbtheory.cpp index 852beb5..8689cea 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) |