Skip to content

Commit

Permalink
Fix C++ linting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingurney committed May 20, 2024
1 parent 8418a79 commit 7f7cc88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions matlab/src/cpp/arrow/matlab/array/proxy/array.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,7 @@ void Array::exportToC(libmexclass::proxy::method::Context& context) {
const mda::TypedArray<uint64_t> array_address_mda = opts[0]["ArrowArrayAddress"];
const mda::TypedArray<uint64_t> schema_address_mda = opts[0]["ArrowSchemaAddress"];

auto arrow_array =
reinterpret_cast<struct ArrowArray*>(uint64_t(array_address_mda[0]));
auto arrow_array = reinterpret_cast<struct ArrowArray*>(uint64_t(array_address_mda[0]));
auto arrow_schema =
reinterpret_cast<struct ArrowSchema*>(uint64_t(schema_address_mda[0]));

Expand Down
6 changes: 2 additions & 4 deletions matlab/src/cpp/arrow/matlab/c/proxy/array_importer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@ void ArrayImporter::import(libmexclass::proxy::method::Context& context) {
const auto arrow_array_address = uint64_t(arrow_array_address_mda[0]);
const auto arrow_schema_address = uint64_t(arrow_schema_address_mda[0]);

auto arrow_array =
reinterpret_cast<struct ArrowArray*>(arrow_array_address);
auto arrow_schema =
reinterpret_cast<struct ArrowSchema*>(arrow_schema_address);
auto arrow_array = reinterpret_cast<struct ArrowArray*>(arrow_array_address);
auto arrow_schema = reinterpret_cast<struct ArrowSchema*>(arrow_schema_address);

MATLAB_ASSIGN_OR_ERROR_WITH_CONTEXT(auto array,
arrow::ImportArray(arrow_array, arrow_schema),
Expand Down

0 comments on commit 7f7cc88

Please sign in to comment.