diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2020-02-14 22:45:36 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2020-02-14 22:45:52 +0100 |
commit | 34878fd4801d94fd9a2d816bd8eb9b5f3ad05a67 (patch) | |
tree | c1be35391d2b4527bd5ad2529cc16884303d67e6 /searchlib | |
parent | b173d4bd32ca845e91e1464fb6812a040025cb9b (diff) |
Fix issues detected by clang 10.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/tests/aggregator/perdocexpr.cpp | 2 | ||||
-rw-r--r-- | searchlib/src/tests/expression/attributenode/attribute_node_test.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/tests/aggregator/perdocexpr.cpp b/searchlib/src/tests/aggregator/perdocexpr.cpp index 610fc58e98f..41465f991e3 100644 --- a/searchlib/src/tests/aggregator/perdocexpr.cpp +++ b/searchlib/src/tests/aggregator/perdocexpr.cpp @@ -1209,7 +1209,7 @@ TEST("testArithmeticOperations") { testAdd(createScalarInt(I1), createScalarInt(I2), 3469774562ull, 3469774562ull); testAdd(createScalarInt(I1), createScalarFloat(F2), 1793253251ull, 1793253250.767681239); testAdd(createScalarFloat(F1), createScalarFloat(F2), 11, 10.878668839 ); - testMultiply(createScalarInt(I1), createScalarInt(I2), 3006427292488851361ull, 3006427292488851361ull); + testMultiply(createScalarInt(I1), createScalarInt(I2), 3006427292488851361ull, static_cast<double>(3006427292488851361ull)); testMultiply(createScalarInt(I1), createScalarFloat(F2), 17515926039ull, 1793253241.0*9.767681239); testMultiply(createScalarFloat(F1), createScalarFloat(F2), 11, 10.8517727372816364 ); diff --git a/searchlib/src/tests/expression/attributenode/attribute_node_test.cpp b/searchlib/src/tests/expression/attributenode/attribute_node_test.cpp index 503922bdb13..02d459dd0d8 100644 --- a/searchlib/src/tests/expression/attributenode/attribute_node_test.cpp +++ b/searchlib/src/tests/expression/attributenode/attribute_node_test.cpp @@ -267,7 +267,7 @@ Fixture::assertBools(std::vector<bool> expVals, const vespalib::string &attribut { auto node = makeNode(attributeName, false, preserveAccurateTypes); uint32_t docId = 0; - for (const auto &expDocVal : expVals) { + for (const auto expDocVal : expVals) { ++docId; node->setDocId(docId); node->execute(); |