Skip to content

Commit b783307

Browse files
committed
Update array_from_py.cpp
1 parent a24e432 commit b783307

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dynd/src/array_from_py.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ dynd::nd::array pydynd::array_from_py(PyObject *obj, uint32_t access_flags, bool
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);
442-
result.get()->data = data_ptr;
442+
result->set_data(data_ptr);
443443
// The scalar consists of pointers to the byte string data
444444
reinterpret_cast<dynd::string *>(data_ptr)->assign(data, len);
445445
// The arrmeta

0 commit comments

Comments
 (0)