Skip to content

Commit

Permalink
Fix ci test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
zanmato1984 committed Jan 24, 2025
1 parent eb34058 commit d37672e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/src/arrow/testing/generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ ARROW_TESTING_EXPORT std::shared_ptr<ArrayGenerator> Constant(
/// make a generator that returns an incrementing value
///
/// Note: overflow is not prevented standard unsigned integer overflow applies
template <typename T = int32_t>
template <typename T = uint32_t>
ARROW_TESTING_EXPORT std::shared_ptr<ArrayGenerator> Step(T start = 0, T step = 1) {
class StepGenerator : public ArrayGenerator {
public:
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/testing/generator_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ TEST(StepTest, Default) {
for (auto length : {0, 1, 1024}) {
ARROW_SCOPED_TRACE("length=" + std::to_string(length));
ASSERT_OK_AND_ASSIGN(auto array, Step()->Generate(length));
CheckStep(*array, 0, 1, length);
CheckStep(*array, 0u, 1u, length);
}
}

Expand Down

0 comments on commit d37672e

Please sign in to comment.