Skip to content

Commit

Permalink
Fix signed of loop idx
Browse files Browse the repository at this point in the history
  • Loading branch information
kunaltyagi committed Dec 20, 2021
1 parent f8da5b5 commit 51f569b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/search/test_search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ TEST_P(MakeNonTrivialTests, distance)
auto* expected_sizes =
search->getSortedResults() ? &expected_sorted_sizes : &expected_unsorted_sizes;

for (int i = 0; i < test_distances.size(); i++) {
for (unsigned int i = 0; i < test_distances.size(); i++) {
auto indices = test_indices[i];
auto distances = test_distances[i];
auto size = search->makeNonTrivial(indices, distances);
Expand Down Expand Up @@ -600,8 +600,8 @@ TEST_P(MakeNonTrivialTests, index)
auto* expected_sizes =
search->getSortedResults() ? &expected_sorted_sizes : &expected_unsorted_sizes;

for (int seed_idx = 0; seed_idx < test_seeds; seed_idx++) {
for (int i = 0; i < test_distances.size(); i++) {
for (unsigned int seed_idx = 0; seed_idx < test_seeds; seed_idx++) {
for (unsigned int i = 0; i < test_distances.size(); i++) {
auto indices = test_indices[i];
auto distances = test_distances[i];
auto size = search->makeNonTrivial(test_seeds[seed_idx], indices, distances);
Expand Down

0 comments on commit 51f569b

Please sign in to comment.