Skip to content

Commit

Permalink
fix casting warning in Random test
Browse files Browse the repository at this point in the history
  • Loading branch information
fnrizzi committed Sep 20, 2023
1 parent 2e74367 commit b2a1820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algorithms/unit_tests/TestRandom.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ void test_duplicate_stream() {
std::vector<size_t> indices(n_streams);
std::iota(indices.begin(), indices.end(), 0);

auto comparator = [&](int i, int j) {
auto comparator = [&](size_t i, size_t j) {
for (int k = 0; k < samples; k++) {
if (vals_h(i, k) != vals_h(j, k)) return vals_h(i, k) < vals_h(j, k);
}
Expand Down

0 comments on commit b2a1820

Please sign in to comment.