Skip to content
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions include/pybind11/pytypes-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ PYBIND11_INLINE memoryview memoryview::from_buffer(void *ptr,
view.itemsize = itemsize;
view.format = const_cast<char *>(format);
view.ndim = static_cast<int>(ndim);
#if defined(PYPY_VERSION)
// PyPy (at least up to 8.0.0) only copies shape and strides that point to its inline arrays.
#if defined(PYPY_VERSION) && PYPY_VERSION_NUM < 0x08010000
// PyPy (at least up to 8.1.0) only copies shape and strides that point to its inline arrays.
if (ndim > PyBUF_MAX_NDIM) {
pybind11_fail("memoryview: too many dimensions");
}
Expand Down
Loading