Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions bindings/pyroot/cppyy/CPyCppyy/src/LowLevelViews.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1093,8 +1093,9 @@ static inline CPyCppyy::LowLevelView* CreateLowLevelViewT(
llp->fConverter = llp->fElemCnv;
} else {
// multi-dim array; sub-views are projected by using more LLViews
view.len = nx * sizeof(void*);
view.itemsize = sizeof(void*);
const size_t elemsize = isfix ? sizeof(T) : sizeof(void*);
view.len = nx * elemsize;
view.itemsize = elemsize;
for (Py_ssize_t idim = 1; idim < view.ndim; ++idim)
view.shape[idim] = shape[idim];

Expand Down
Loading