Fixed Android build warning
authorAndrey Kamaev <no@email>
Mon, 16 Apr 2012 07:22:44 +0000 (07:22 +0000)
committerAndrey Kamaev <no@email>
Mon, 16 Apr 2012 07:22:44 +0000 (07:22 +0000)
modules/nonfree/test/test_features2d.cpp

index 24aa5d9..a808a46 100644 (file)
@@ -1066,7 +1066,7 @@ TEST(Features2d_BruteForceDescriptorMatcher_knnMatch, regression)
     matcher->knnMatch(descQ, descT, matches, k);
 
     //cout << "\nBest " << k << " matches to " << descT.rows << " train desc-s." << endl;
-    ASSERT_EQ(descQ.rows, matches.size());
+    ASSERT_EQ(descQ.rows, static_cast<int>(matches.size()));
     for(size_t i = 0; i<matches.size(); i++)
     {
         //cout << "\nmatches[" << i << "].size()==" << matches[i].size() << endl;