From 622bc3c2e87ee1e2c069b6de1c693d9b9fd219ec Mon Sep 17 00:00:00 2001 From: karsten Date: Wed, 15 Dec 2021 18:20:10 +0100 Subject: [PATCH] cleanup --- ParallelSearch.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ParallelSearch.hpp b/ParallelSearch.hpp index 0aeaf75..f13939b 100644 --- a/ParallelSearch.hpp +++ b/ParallelSearch.hpp @@ -27,7 +27,7 @@ public: // compute [first; last( iterators for sub-range std::size_t size = bucketSize + remains; Iterator first = begin + offset; - Iterator last = first + bucketSize + remains; + Iterator last = first + size; // add appropriate search job jobList_.push_back(SearchJob(first, last, pattern)); @@ -60,7 +60,7 @@ public: th.join(); } - // collec the results + // collect the results for (SearchJob& job : jobList_) { result_.insert(result_.end(), job.get_result().begin(), job.get_result().end());