summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--searchlib/src/vespa/searchlib/common/bitvector.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/searchlib/src/vespa/searchlib/common/bitvector.cpp b/searchlib/src/vespa/searchlib/common/bitvector.cpp
index cee5801beb9..9deadf2e0bb 100644
--- a/searchlib/src/vespa/searchlib/common/bitvector.cpp
+++ b/searchlib/src/vespa/searchlib/common/bitvector.cpp
@@ -78,9 +78,8 @@ BitVector::parallellOr(vespalib::ThreadBundle & thread_bundle, vespalib::ConstAr
std::vector<OrParts> parts;
parts.reserve(thread_bundle.size());
bits_per_thread = (bits_per_thread/ALIGNMENT_BITS) * ALIGNMENT_BITS;
- parts.emplace_back(vectors, 0, bits_per_thread);
- BitVector::Index offset = bits_per_thread;
- for (uint32_t i(1); (i + 1) < thread_bundle.size(); i++) {
+ BitVector::Index offset = 0;
+ for (uint32_t i(0); (i + 1) < thread_bundle.size(); i++) {
parts.emplace_back(vectors, offset, bits_per_thread);
offset += bits_per_thread;
}