fix signed/unsigned comparison warning in core/test/test_math.cpp

pull/5652/head
Vladislav Vinogradov 9 years ago
parent 0f288d1082
commit d5e6503fe5
  1. 4
      modules/core/test/test_math.cpp

@ -2383,7 +2383,7 @@ TEST(Core_SolvePoly, regression_5599)
double prec;
prec = cv::solvePoly(coefs, r);
EXPECT_LE(prec, 1e-6);
EXPECT_EQ(4, r.total());
EXPECT_EQ(4u, r.total());
//std::cout << "Preciseness = " << prec << std::endl;
//std::cout << "roots:\n" << r << "\n" << std::endl;
ASSERT_EQ(CV_32FC2, r.type());
@ -2399,7 +2399,7 @@ TEST(Core_SolvePoly, regression_5599)
double prec;
prec = cv::solvePoly(coefs, r);
EXPECT_LE(prec, 1e-6);
EXPECT_EQ(2, r.total());
EXPECT_EQ(2u, r.total());
//std::cout << "Preciseness = " << prec << std::endl;
//std::cout << "roots:\n" << r << "\n" << std::endl;
ASSERT_EQ(CV_32FC2, r.type());

Loading…
Cancel
Save