Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Feb 15, 2024
1 parent 0adcb04 commit 61ae110
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cpp/src/arrow/c/bridge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,11 @@ struct ArrayExporter {
export_.buffers_.resize(n_buffers);
std::transform(buffers_begin, data->buffers.end(), export_.buffers_.begin(),
[](const std::shared_ptr<Buffer>& buffer) -> const void* {
return buffer ? (device_interface ? reinterpret_cast<const void*>(buffer->address()) : buffer->data())
: nullptr;
return buffer
? (device_interface
? reinterpret_cast<const void*>(buffer->address())
: buffer->data())
: nullptr;
});

if (need_variadic_buffer_sizes) {
Expand Down

0 comments on commit 61ae110

Please sign in to comment.