Skip to content

Commit 40cc459

Browse files
Cleanup
1 parent 732fe00 commit 40cc459

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

FindAFactor/_find_a_factor.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -783,13 +783,13 @@ struct Factorizer {
783783
batchTotal(nodeCount * range), wheelEntryCount(w), rowLimit(rl),
784784
isIncomplete(true), smoothPrimes(sp), forwardFn(ffn), backwardFn(bfn)
785785
{
786-
smoothNumberKeys.reserve(rowLimit);
787-
smoothNumberQValues.reserve(rowLimit);
788-
smoothNumberValues.reserve(rowLimit);
789-
790786
while (smoothPrimes.size() && (smoothPrimes[0U] <= wfl)) {
791787
smoothPrimes.erase(smoothPrimes.begin());
788+
--rowLimit;
792789
}
790+
smoothNumberKeys.reserve(rowLimit);
791+
smoothNumberQValues.reserve(rowLimit);
792+
smoothNumberValues.reserve(rowLimit);
793793
}
794794

795795
BigInteger getNextBatch() {

0 commit comments

Comments
 (0)