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]); }