diff options
author | Jeffrey Walton <noloader@gmail.com> | 2015-07-19 10:24:10 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2015-07-19 10:24:10 -0400 |
commit | 90b5dc9e61fdd40181112a9fd52b47dcca5520be (patch) | |
tree | 48ea6819964699a03c8a478a97f86c264a98d8b7 /nbtheory.cpp | |
parent | 8f59d9af3598927cd83ac0582abc0a977395f049 (diff) | |
download | cryptopp-git-90b5dc9e61fdd40181112a9fd52b47dcca5520be.tar.gz |
Cleared remaining virtual destructor warnings under GCC with -Wall
Diffstat (limited to 'nbtheory.cpp')
-rw-r--r-- | nbtheory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nbtheory.cpp b/nbtheory.cpp index 3fdea4e6..0334cf58 100644 --- a/nbtheory.cpp +++ b/nbtheory.cpp @@ -308,7 +308,8 @@ PrimeSieve::PrimeSieve(const Integer &first, const Integer &last, const Integer bool PrimeSieve::NextCandidate(Integer &c) { bool safe = SafeConvert(std::find(m_sieve.begin()+m_next, m_sieve.end(), false) - m_sieve.begin(), m_next); - assert(safe); + assert(safe); CRYPTOPP_UNUSED(safe); + if (m_next == m_sieve.size()) { m_first += long(m_sieve.size())*m_step; |