summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2024-01-15 11:51:17 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2024-01-15 11:51:17 +0000
commitbc751bbc305da60c730f0198a4f024b7d7dc0dd4 (patch)
treef8a8263eac83104e77e622338821f8b4c1a84fa8 /searchlib
parent3138973345b424dc8cffdeaeef38ef427983b161 (diff)
No need to special handle the first.
Diffstat (limited to 'searchlib')
-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;
}