]> granicus.if.org Git - python/commitdiff
Add comment why the change in d83884b3a427 wasn't necessary.
authorStefan Krah <skrah@bytereef.org>
Sun, 8 Jan 2017 00:36:00 +0000 (01:36 +0100)
committerStefan Krah <skrah@bytereef.org>
Sun, 8 Jan 2017 00:36:00 +0000 (01:36 +0100)
Modules/_testbuffer.c

index 43db8a8e53a34a3826c5517109f081d406b313fc..4e1ce6851a5eb6e0c6deee7ca6d2aaeec8e9f3ab 100644 (file)
@@ -850,6 +850,7 @@ seq_as_ssize_array(PyObject *seq, Py_ssize_t len, int is_shape)
     Py_ssize_t *dest;
     Py_ssize_t x, i;
 
+    /* ndim = len <= ND_MAX_NDIM, so PyMem_New() is actually not needed. */
     dest = PyMem_New(Py_ssize_t, len);
     if (dest == NULL) {
         PyErr_NoMemory();