Skip to content

Commit

Permalink
Use int64_t instead of size_t as distribution parameter
Browse files Browse the repository at this point in the history
for consistency with the codebase style
  • Loading branch information
felipecrv committed Sep 4, 2024
1 parent 62eb8c1 commit d5e642c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/chunked_array_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ class TestChunkResolverMany : public ::testing::Test {
logical_index_vec.push_back(index);
}
// ...and sprinkle some extreme logical index values.
std::uniform_int_distribution<size_t> position_gen(0, logical_index_vec.size() - 1);
std::uniform_int_distribution<int64_t> position_gen(0, logical_index_vec.size() - 1);
for (int i = 0; i < 2; i++) {
auto max_valid_index =
std::min(kMaxValidIndex, static_cast<size_t>(chunked_array_len));
Expand Down

0 comments on commit d5e642c

Please sign in to comment.