diff options
author | Stefan Krah <skrah@bytereef.org> | 2017-01-08 00:36:00 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2017-01-08 00:36:00 (GMT) |
commit | 0b64a0fc6468eb0abaf04a3e666c7a16f6b373f1 (patch) | |
tree | 85e678c4ed1cb89b198f3e7c4b5eda336d17dbe1 | |
parent | dada5a8d7558d1a7794c4854a8e3f21a999f49b6 (diff) | |
download | cpython-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.c | 1 |
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(); |