From 3e35d53e9e0b9902db0593ee142f7dbb8dc0cdfe Mon Sep 17 00:00:00 2001 From: karsten Date: Wed, 15 Dec 2021 18:20:52 +0100 Subject: [PATCH] cleanup --- ParallelSearch.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ParallelSearch.hpp b/ParallelSearch.hpp index f13939b..9e73edb 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 + size; + Iterator last = begin + offset + size; // add appropriate search job jobList_.push_back(SearchJob(first, last, pattern));