diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-01-23 20:05:51 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-01-23 20:10:31 +0000 |
commit | f36fd2153ce2e4668f4e3df1568deddebf25a348 (patch) | |
tree | 815be180f3cb7d845e4620fc36b5bf8110728adf /searchlib | |
parent | 78e994df4130ab8a3eb07135f17e306695947207 (diff) |
Change assert to also check end.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/common/bitvector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/common/bitvector.cpp b/searchlib/src/vespa/searchlib/common/bitvector.cpp index 1e403702fad..7ae21b5718a 100644 --- a/searchlib/src/vespa/searchlib/common/bitvector.cpp +++ b/searchlib/src/vespa/searchlib/common/bitvector.cpp @@ -95,7 +95,7 @@ BitVector::clearInterval(Index start, Index end) void BitVector::store(Word &word, Word value) { - assert(!_enable_range_check && (&word >= getActiveStart())); + assert(!_enable_range_check || ((&word >= getActiveStart()) && (&word < (getActiveStart() + numActiveWords())))); return store_unchecked(word, value); } |