summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2017-01-08 00:36:00 (GMT)
committerStefan Krah <skrah@bytereef.org>2017-01-08 00:36:00 (GMT)
commit0b64a0fc6468eb0abaf04a3e666c7a16f6b373f1 (patch)
tree85e678c4ed1cb89b198f3e7c4b5eda336d17dbe1
parentdada5a8d7558d1a7794c4854a8e3f21a999f49b6 (diff)
downloadcpython-0b64a0fc6468eb0abaf04a3e666c7a16f6b373f1.zip
cpython-0b64a0fc6468eb0abaf04a3e666c7a16f6b373f1.tar.gz
cpython-0b64a0fc6468eb0abaf04a3e666c7a16f6b373f1.tar.bz2
Add comment why the change in d83884b3a427 wasn't necessary.
-rw-r--r--Modules/_testbuffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_testbuffer.c b/Modules/_testbuffer.c
index 43db8a8..4e1ce68 100644
--- a/Modules/_testbuffer.c
+++ b/Modules/_testbuffer.c
@@ -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();