Skip to content

Commit b67873d

Browse files
Merge pull request #3230 from AleksandrPanov:fix_ArucoThreading_test
Fix warning for Aruco threading test
2 parents 76cd35e + 7b707a0 commit b67873d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/aruco/test/test_arucodetection.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -766,8 +766,8 @@ TEST_P(ArucoThreading, number_of_threads_does_not_change_results)
766766
cv::aruco::detectMarkers(img, dictionary, original_corners, original_ids, params);
767767
}
768768

769-
ASSERT_EQ(original_ids.size(), 1);
770-
ASSERT_EQ(original_corners.size(), 1);
769+
ASSERT_EQ(original_ids.size(), 1ull);
770+
ASSERT_EQ(original_corners.size(), 1ull);
771771

772772
int num_threads_to_test[] = { 2, 8, 16, 32, height_img-1, height_img, height_img+1};
773773

@@ -779,7 +779,7 @@ TEST_P(ArucoThreading, number_of_threads_does_not_change_results)
779779
cv::aruco::detectMarkers(img, dictionary, corners, ids, params);
780780

781781
// If we don't find any markers, the test is broken
782-
ASSERT_EQ(ids.size(), 1);
782+
ASSERT_EQ(ids.size(), 1ull);
783783

784784
// Make sure we got the same result as the first time
785785
ASSERT_EQ(corners.size(), original_corners.size());

0 commit comments

Comments
 (0)