From ace4cc7cd6017ce600efe793772d4f25aa88ecbb Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Tue, 2 Apr 2024 14:08:23 -0500 Subject: [PATCH] Correcting one buffer size selection --- libtiledbsoma/src/utils/arrow_adapter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtiledbsoma/src/utils/arrow_adapter.cc b/libtiledbsoma/src/utils/arrow_adapter.cc index 89326c8a11..ad3c22ab53 100644 --- a/libtiledbsoma/src/utils/arrow_adapter.cc +++ b/libtiledbsoma/src/utils/arrow_adapter.cc @@ -445,7 +445,7 @@ ArrowAdapter::to_arrow(std::shared_ptr column) { exitIfError( ArrowArrayAllocateChildren(dict_arr, 0), "Bad array children alloc"); - const int n_buf = ArrowAdapter::_isstr(dict_sch->format) == 0 ? 3 : 2; + const int n_buf = ArrowAdapter::_isstr(dict_sch->format) == true ? 3 : 2; dict_arr->buffers = (const void**)malloc(sizeof(void*) * n_buf); dict_arr->buffers[0] = nullptr; // validity: none here dict_arr->release = &release_array;