Skip to content

Commit

Permalink
use INT_MIN
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Sep 25, 2023
1 parent e365e88 commit 9a16f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nanoarrow/array_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1694,7 +1694,7 @@ TEST(ArrayTest, ArrayViewTestString) {

// Check sequential offsets whose diff causes overflow
offsets[1] = 2080374784;
offsets[2] = -static_cast<int64_t>(2147483648);
offsets[2] = INT_MIN;
EXPECT_EQ(ArrowArrayViewSetArray(&array_view, &array, &error), NANOARROW_OK);
EXPECT_EQ(ArrowArrayViewValidate(&array_view, NANOARROW_VALIDATION_LEVEL_FULL, &error),
EINVAL);
Expand Down

0 comments on commit 9a16f6a

Please sign in to comment.