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:
Antoine Pitrou 2009-01-03 19:20:36 +00:00
parent 771ed76102
commit 35b7e837ab
2 changed files with 458 additions and 459 deletions

View File

@ -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);