diff options
author | Tor Egge <tegge@vespa.ai> | 2023-12-04 12:18:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 12:18:33 +0100 |
commit | 062d91c783c45083165cb3eb29a53cac8911b8cc (patch) | |
tree | 2e83e4cefaafbf4d4a1f66d09ccde68fc96444a3 | |
parent | 4821f382e10ee6f864a6d61db497c14b1efec4a5 (diff) | |
parent | bf51434077cef1e60334cf3ec46d487674d933db (diff) |
Merge pull request #29539 from vespa-engine/toregge/dont-switch-lower-and-upper-bound
Don't switch lower and upper bound.
-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: |