diff options
author | Tor Egge <Tor.Egge@online.no> | 2023-12-04 10:34:51 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2023-12-04 10:34:51 +0100 |
commit | bf51434077cef1e60334cf3ec46d487674d933db (patch) | |
tree | 02ebdea3213fd6fd978cf0575d05486d384440c2 /streamingvisitors | |
parent | b7c906bba9888ebc4086b9613eea5338711dd828 (diff) |
Don't switch lower and upper bound.
Diffstat (limited to 'streamingvisitors')
-rw-r--r-- | streamingvisitors/src/vespa/vsm/searcher/floatfieldsearcher.h | 2 | ||||
-rw-r--r-- | streamingvisitors/src/vespa/vsm/searcher/intfieldsearcher.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/streamingvisitors/src/vespa/vsm/searcher/floatfieldsearcher.h b/streamingvisitors/src/vespa/vsm/searcher/floatfieldsearcher.h index 877050a3276..38bb6704c3b 100644 --- a/streamingvisitors/src/vespa/vsm/searcher/floatfieldsearcher.h +++ b/streamingvisitors/src/vespa/vsm/searcher/floatfieldsearcher.h @@ -20,7 +20,7 @@ protected: class FloatInfo { public: - FloatInfo(T low, T high, bool v) : _lower(low), _upper(high), _valid(v) { if (low > high) { _lower = high; _upper = low; } } + FloatInfo(T low, T high, bool v) : _lower(low), _upper(high), _valid(v) { } bool cmp(T key) const; bool valid() const { return _valid; } void setValid(bool v) { _valid = v; } diff --git a/streamingvisitors/src/vespa/vsm/searcher/intfieldsearcher.h b/streamingvisitors/src/vespa/vsm/searcher/intfieldsearcher.h index bf143a4d06b..845fd2721cf 100644 --- a/streamingvisitors/src/vespa/vsm/searcher/intfieldsearcher.h +++ b/streamingvisitors/src/vespa/vsm/searcher/intfieldsearcher.h @@ -20,7 +20,7 @@ protected: class IntInfo { public: - IntInfo(int64_t low, int64_t high, bool v) : _lower(low), _upper(high), _valid(v) { if (low > high) { _lower = high; _upper = low; } } + IntInfo(int64_t low, int64_t high, bool v) : _lower(low), _upper(high), _valid(v) { } bool cmp(int64_t key) const { return (_lower <= key) && (key <= _upper); } bool valid() const { return _valid; } private: |