From d5e6503fe5d495da1f48bffd4837b1d59956bbf2 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Wed, 11 Nov 2015 11:53:39 +0300 Subject: [PATCH] fix signed/unsigned comparison warning in core/test/test_math.cpp --- modules/core/test/test_math.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/test/test_math.cpp b/modules/core/test/test_math.cpp index 6ae288fb7e..b4f6ea4dd0 100644 --- a/modules/core/test/test_math.cpp +++ b/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());