Skip to content

Commit 441408d

Browse files
committed
Fix uniform int distribution type
1 parent 6fc9785 commit 441408d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpp/src/arrow/util/rle_bitmap_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ namespace {
3636
std::vector<uint8_t> MakeRandomBytes(size_t size, uint32_t seed = 56) {
3737
std::vector<uint8_t> bytes(size);
3838
std::minstd_rand gen(seed);
39-
std::uniform_int_distribution<uint8_t> dist(0, 255);
39+
std::uniform_int_distribution<int> dist(0, 255); // no standard support for uint8_t
4040
for (auto& byte : bytes) {
41-
byte = dist(gen);
41+
byte = static_cast<uint8_t>(dist(gen));
4242
}
4343
return bytes;
4444
}

0 commit comments

Comments
 (0)