mirror of https://github.com/python/cpython
Issue #4822: fix messy indentation in memoryobject.c/.h, before we may backport it to trunk.
Reviewed on IRC by Georg Brandl, with assistance by Benjamin Peterson.
This commit is contained in:
parent
771ed76102
commit
35b7e837ab
|
@ -569,8 +569,7 @@ memory_subscript(PyMemoryViewObject *self, PyObject *key)
|
|||
else
|
||||
ptr += view->strides[0] * result;
|
||||
if (view->suboffsets != NULL &&
|
||||
view->suboffsets[0] >= 0)
|
||||
{
|
||||
view->suboffsets[0] >= 0) {
|
||||
ptr = *((char **)ptr) + view->suboffsets[0];
|
||||
}
|
||||
return PyBytes_FromStringAndSize(ptr, view->itemsize);
|
||||
|
|
Loading…
Reference in New Issue