Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zanmato1984 committed Jan 18, 2024
1 parent a0204d6 commit 447153c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/src/arrow/compute/light_array.cc
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,8 @@ Status ExecBatchBuilder::AppendSelected(const std::shared_ptr<ArrayData>& source
int32_t length = offsets[num_rows_before + i];
offsets[num_rows_before + i] = sum;
int32_t new_sum_maybe_overflow = 0;
if (ARROW_PREDICT_FALSE(internal::AddWithOverflow(sum, length, &new_sum_maybe_overflow))) {
if (ARROW_PREDICT_FALSE(
internal::AddWithOverflow(sum, length, &new_sum_maybe_overflow))) {
return Status::Invalid("Overflow detected in ExecBatchBuilder when appending ",
num_rows_before + i + 1, "-th element of length ", length,
" bytes to current length ", sum, " bytes");
Expand Down

0 comments on commit 447153c

Please sign in to comment.