Skip to content

Commit

Permalink
make format
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Apr 2, 2024
1 parent ace4cc7 commit 1c78d37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libtiledbsoma/src/utils/arrow_adapter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,8 @@ ArrowAdapter::to_arrow(std::shared_ptr<ColumnBuffer> column) {
exitIfError(
ArrowArrayAllocateChildren(dict_arr, 0),
"Bad array children alloc");
const int n_buf = ArrowAdapter::_isstr(dict_sch->format) == true ? 3 : 2;
const int n_buf = ArrowAdapter::_isstr(dict_sch->format) == true ? 3 :

Check warning on line 448 in libtiledbsoma/src/utils/arrow_adapter.cc

View check run for this annotation

Codecov / codecov/patch

libtiledbsoma/src/utils/arrow_adapter.cc#L443-L448

Added lines #L443 - L448 were not covered by tests
2;
dict_arr->buffers = (const void**)malloc(sizeof(void*) * n_buf);

Check warning on line 450 in libtiledbsoma/src/utils/arrow_adapter.cc

View check run for this annotation

Codecov / codecov/patch

libtiledbsoma/src/utils/arrow_adapter.cc#L450

Added line #L450 was not covered by tests
dict_arr->buffers[0] = nullptr; // validity: none here
dict_arr->release = &release_array;

Check warning on line 452 in libtiledbsoma/src/utils/arrow_adapter.cc

View check run for this annotation

Codecov / codecov/patch

libtiledbsoma/src/utils/arrow_adapter.cc#L452

Added line #L452 was not covered by tests
Expand Down

0 comments on commit 1c78d37

Please sign in to comment.