Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sperlingxx committed Aug 6, 2021
1 parent 1430e3f commit 59015ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/structs/copying/concatenate.cu
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ std::unique_ptr<column> concatenate(host_span<column_view const> columns,
});

// get total length from concatenated children; if no child exists, we would compute it
auto const accSizeFn = [](size_type s, column_view const& c) { return s + c.size(); };
auto const acc_size_fn = [](size_type s, column_view const& c) { return s + c.size(); };
auto const total_length =
!children.empty() ? children[0]->size()
: std::accumulate(columns.begin(), columns.end(), size_type{0}, accSizeFn);
: std::accumulate(columns.begin(), columns.end(), size_type{0}, acc_size_fn);

// if any of the input columns have nulls, construct the output mask
bool const has_nulls =
Expand Down

0 comments on commit 59015ba

Please sign in to comment.