Skip to content

Commit cd96990

Browse files
committed
Update array_from_py.cpp
1 parent 4d5fc80 commit cd96990

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dynd/src/array_from_py.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,8 @@ dynd::nd::array pydynd::array_from_py(PyObject *obj, uint32_t access_flags, bool
434434
// Python bytes are immutable, so simply use the existing memory with an
435435
// external memory
436436
Py_INCREF(obj);
437-
intrusive_ptr<memory_block_data> bytesref =
438-
make_external_memory_block(reinterpret_cast<void *>(obj), &py_decref_function);
437+
nd::memory_block bytesref =
438+
nd::make_memory_block<nd::external_memory_block>(reinterpret_cast<void *>(obj), &py_decref_function);
439439
char *data_ptr;
440440
result = nd::make_array_memory_block(d, d.extended()->get_arrmeta_size(), d.get_data_size(),
441441
d.get_data_alignment(), &data_ptr);

0 commit comments

Comments
 (0)