diff options
author | Geir Storli <geirst@verizonmedia.com> | 2020-01-28 19:17:29 +0000 |
---|---|---|
committer | Geir Storli <geirst@verizonmedia.com> | 2020-01-28 19:17:29 +0000 |
commit | a64bc2a8c0dc48e36209599a170356a6b18440b6 (patch) | |
tree | 9a864bdd8d4d9ac30967542ce38ba35b57e474c9 /searchlib | |
parent | 671b81cb952aa19704e9c50d93f083066c528810 (diff) |
Make it more readable.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/attribute/singleboolattribute.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/singleboolattribute.cpp b/searchlib/src/vespa/searchlib/attribute/singleboolattribute.cpp index 5a7c110e803..e1ab47ed434 100644 --- a/searchlib/src/vespa/searchlib/attribute/singleboolattribute.cpp +++ b/searchlib/src/vespa/searchlib/attribute/singleboolattribute.cpp @@ -104,7 +104,7 @@ private: bool _valid; bool valid() const override { return _valid; } int32_t onFind(DocId docId, int32_t elemId, int32_t & weight) const override final { - if ((elemId == 0) && (!_invert == _bv.testBit(docId))) { + if ((elemId == 0) && (_invert != _bv.testBit(docId))) { weight = 1; return 0; } @@ -113,7 +113,7 @@ private: } int32_t onFind(DocId docId, int32_t elemId) const override final { - return ((elemId == 0) && (!_invert == _bv.testBit(docId))) ? 0 : -1; + return ((elemId == 0) && (_invert != _bv.testBit(docId))) ? 0 : -1; } public: |