summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/Objects/memoryobject.c
diff options
context:
space:
mode:
authorAlexSm <[email protected]>2024-08-19 16:16:30 +0200
committerGitHub <[email protected]>2024-08-19 17:16:30 +0300
commit9b567afd3339f4525feab53873592cb025b14251 (patch)
tree5c8489f98dc5a9a10f66065055e5a401bbd14767 /contrib/tools/python3/Objects/memoryobject.c
parent47bd121575c210d4bbb2dddcc2131759a694df05 (diff)
Library import 240819-0942 (#7994)
Co-authored-by: robot-piglet <[email protected]> Co-authored-by: hiddenpath <[email protected]> Co-authored-by: bulatman <[email protected]> Co-authored-by: robot-contrib <[email protected]> Co-authored-by: osidorkin <[email protected]> Co-authored-by: akhropov <[email protected]> Co-authored-by: akozhikhov <[email protected]> Co-authored-by: orlovorlov <[email protected]> Co-authored-by: babenko <[email protected]> Co-authored-by: shadchin <[email protected]> Co-authored-by: dmasloff <[email protected]> Co-authored-by: aleksei-le <[email protected]> Co-authored-by: coteeq <[email protected]> Co-authored-by: dimdim11 <[email protected]> Co-authored-by: robot-ya-builder <[email protected]> Co-authored-by: iaz1607 <[email protected]>
Diffstat (limited to 'contrib/tools/python3/Objects/memoryobject.c')
-rw-r--r--contrib/tools/python3/Objects/memoryobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tools/python3/Objects/memoryobject.c b/contrib/tools/python3/Objects/memoryobject.c
index b0168044d9f..3c88859acc1 100644
--- a/contrib/tools/python3/Objects/memoryobject.c
+++ b/contrib/tools/python3/Objects/memoryobject.c
@@ -264,7 +264,7 @@ PyTypeObject _PyManagedBuffer_Type = {
/* Assumptions: ndim >= 1. The macro tests for a corner case that should
perhaps be explicitly forbidden in the PEP. */
#define HAVE_SUBOFFSETS_IN_LAST_DIM(view) \
- (view->suboffsets && view->suboffsets[dest->ndim-1] >= 0)
+ (view->suboffsets && view->suboffsets[view->ndim-1] >= 0)
static inline int
last_dim_is_contiguous(const Py_buffer *dest, const Py_buffer *src)