Make it more readable.
@@ -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:
