Skip to content

Commit

Permalink
chunked_array_test.cc: MSVC can't take int8_t for uniform_int_distrib…
Browse files Browse the repository at this point in the history
…ution
  • Loading branch information
felipecrv committed Sep 4, 2024
1 parent 2db186c commit 62eb8c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cpp/src/arrow/chunked_array_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,10 @@ class TestChunkResolverMany : public ::testing::Test {
const auto num_logical_indices = 3 * static_cast<int64_t>(num_chunks) / 2;
std::vector<IndexType> logical_index_vec;
logical_index_vec.reserve(num_logical_indices);
std::uniform_int_distribution<IndexType> logical_index_gen(1, kMaxValidIndex);
std::uniform_int_distribution<uint64_t> logical_index_gen(1, kMaxValidIndex);
for (int64_t i = 0; i < num_logical_indices; i++) {
logical_index_vec.push_back(logical_index_gen(rng));
const auto index = static_cast<IndexType>(logical_index_gen(rng));
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);
Expand Down

0 comments on commit 62eb8c1

Please sign in to comment.