Skip to content

Commit

Permalink
Fix sign-compare warning (#3408)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber authored Jan 15, 2025
1 parent 6b510ac commit 3155c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cub/test/catch2_segmented_sort_helper.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public:
auto const next_end =
(uniques_index == count - 1) ? out_keys.size() : h_unique_indexes_out[uniques_index + 1];
REQUIRE(h_unique_keys_out[uniques_index] == i);
REQUIRE(next_end - h_unique_indexes_out[uniques_index] == segment_histogram[i]);
REQUIRE(next_end - h_unique_indexes_out[uniques_index] == static_cast<std::size_t>(segment_histogram[i]));
current_offset += segment_histogram[i];
uniques_index++;
}
Expand Down

0 comments on commit 3155c4b

Please sign in to comment.