aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/eval/compiled_function/compiled_function_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vespalib/src/tests/eval/compiled_function/compiled_function_test.cpp')
-rw-r--r--vespalib/src/tests/eval/compiled_function/compiled_function_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/vespalib/src/tests/eval/compiled_function/compiled_function_test.cpp b/vespalib/src/tests/eval/compiled_function/compiled_function_test.cpp
index 474f1880f2a..3b6a9c6546f 100644
--- a/vespalib/src/tests/eval/compiled_function/compiled_function_test.cpp
+++ b/vespalib/src/tests/eval/compiled_function/compiled_function_test.cpp
@@ -5,6 +5,7 @@
#include <vespa/vespalib/eval/eval_spec.h>
#include <vespa/vespalib/eval/basic_nodes.h>
#include <vespa/vespalib/util/stringfmt.h>
+#include <cmath>
using namespace vespalib::eval;
@@ -88,7 +89,7 @@ TEST("require that large (plugin) set membership checks work") {
auto fun = cf.get_function<1>();
auto arr_fun = arr_cf.get_function();
for (double value = 0.5; value <= 100.5; value += 0.5) {
- if (round(value) == value) {
+ if (std::round(value) == value) {
EXPECT_EQUAL(1.0, fun(value));
EXPECT_EQUAL(1.0, arr_fun(&value));
} else {