summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-07-09 17:31:11 +0000
committerArne Juul <arnej@verizonmedia.com>2020-07-15 15:39:21 +0000
commit136fd0405a7bee92a9ea3277a80618618094b425 (patch)
tree280927466dfd9ac51e83cb80836d73df26ddb2e8 /searchcore
parent709a7b1c4bdcb1acb694a7138e60b3c1699b6d6d (diff)
fix bug in location extract
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/matching/query.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/query.cpp b/searchcore/src/vespa/searchcore/proton/matching/query.cpp
index b2a0e766202..a55f1d50afa 100644
--- a/searchcore/src/vespa/searchcore/proton/matching/query.cpp
+++ b/searchcore/src/vespa/searchcore/proton/matching/query.cpp
@@ -63,7 +63,7 @@ find_location_terms(const Node *tree) {
std::vector<const Node *> nodes;
nodes.push_back(tree);
for (size_t i = 0; i < nodes.size(); ++i) {
- if (auto loc = dynamic_cast<const ProtonLocationTerm *>(tree)) {
+ if (auto loc = dynamic_cast<const ProtonLocationTerm *>(nodes[i])) {
retval.push_back(loc);
}
if (auto parent = dynamic_cast<const search::query::Intermediate *>(nodes[i])) {