Skip to content

Commit

Permalink
static_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
save-buffer committed Nov 4, 2021
1 parent b7d5a5d commit 6f287cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cpp/src/arrow/compute/exec/hash_join.cc
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,9 @@ class HashJoinBasicImpl : public HashJoinImpl {
int32_t irow = 0; // index into match_left
for (int32_t curr_left = 0; static_cast<size_t>(curr_left) < num_probed_rows;
curr_left++) {
int32_t advance_to =
static_cast<size_t>(irow) < num_rows ? match_left[irow] : num_probed_rows;
int32_t advance_to = static_cast<size_t>(irow) < num_rows
? match_left[irow]
: static_cast<int32_t>(num_probed_rows);
while (curr_left < advance_to) {
no_match.push_back(curr_left++);
}
Expand Down

0 comments on commit 6f287cb

Please sign in to comment.