summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-07-24 16:05:33 +0200
committerHenning Baldersheim <balder@oath.com>2018-07-24 16:05:33 +0200
commit523bc6088fcf722d28674791930538adb729274f (patch)
tree7283db977fba189a11054a1ba6dbc6343126d480 /searchlib
parent06b91e4cd4003e62e832776407d50a043b5aefd4 (diff)
Use static cast in inner loop.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/features/internal_max_reduce_prod_join_feature.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/features/internal_max_reduce_prod_join_feature.cpp b/searchlib/src/vespa/searchlib/features/internal_max_reduce_prod_join_feature.cpp
index b096e6e8ff5..9d383e5a03a 100644
--- a/searchlib/src/vespa/searchlib/features/internal_max_reduce_prod_join_feature.cpp
+++ b/searchlib/src/vespa/searchlib/features/internal_max_reduce_prod_join_feature.cpp
@@ -67,7 +67,7 @@ RawExecutor<BaseType>::execute(uint32_t docId)
{
using A = IntegerAttributeTemplate<BaseType>;
const multivalue::Value<BaseType> *values(nullptr);
- const A *iattr = dynamic_cast<const A *>(_attribute);
+ const A *iattr = static_cast<const A *>(_attribute);
size_t count = iattr->getRawValues(docId, values);
outputs().set_number(0, maxProduct(values, count, _queryVector));
}