Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkn committed Oct 7, 2020
1 parent 88a47e7 commit 850954c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cpp/src/arrow/ipc/metadata_internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,8 @@ Status GetTensorMetadata(const Buffer& metadata, std::shared_ptr<DataType>* type

if (tensor->strides() && tensor->strides()->size() > 0) {
if (tensor->strides()->size() != ndim) {
return Status::IOError("The sizes of shape and strides in a tensor are mismatched.");
return Status::IOError(
"The sizes of shape and strides in a tensor are mismatched.");
}

for (decltype(ndim) i = 0; i < ndim; ++i) {
Expand Down
3 changes: 2 additions & 1 deletion cpp/src/arrow/ipc/tensor_stream_fuzz.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
#include "arrow/util/macros.h"

extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
auto status = arrow::ipc::internal::FuzzIpcTensorStream(data, static_cast<int64_t>(size));
auto status =
arrow::ipc::internal::FuzzIpcTensorStream(data, static_cast<int64_t>(size));
ARROW_UNUSED(status);
return 0;
}

0 comments on commit 850954c

Please sign in to comment.