From 603864dba282fe5d497c4a1b39ec5aac2cc4aebb Mon Sep 17 00:00:00 2001 From: Maksim Shabunin Date: Mon, 14 Sep 2015 12:15:56 +0300 Subject: [PATCH] Warning fix --- modules/hal/test/test_intrin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hal/test/test_intrin.cpp b/modules/hal/test/test_intrin.cpp index ae043dd20b..681fe3fd07 100644 --- a/modules/hal/test/test_intrin.cpp +++ b/modules/hal/test/test_intrin.cpp @@ -317,7 +317,7 @@ template struct TheTest for (int i = 0; i < R::nlanes; ++i) { EXPECT_FLOAT_EQ((float)std::sqrt(dataA[i]), (float)resB[i]); - EXPECT_FLOAT_EQ((float)1/std::sqrt(dataA[i]), (float)resC[i]); + EXPECT_FLOAT_EQ(1/(float)std::sqrt(dataA[i]), (float)resC[i]); EXPECT_FLOAT_EQ((float)abs(dataA[i]), (float)resE[i]); }