mirror of
https://github.com/python/cpython.git
synced 2024-12-29 19:55:17 +08:00
Merge 3.6.
This commit is contained in:
commit
aaa67862e8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user