mirror of
https://github.com/python/cpython.git
synced 2024-12-16 05:14:41 +08:00
Fix a compiler warning
This commit is contained in:
parent
1fbcaeff55
commit
1fe99a2ea7
@ -2538,7 +2538,7 @@ array_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||
if (n > 0) {
|
||||
arrayobject *self = (arrayobject *)a;
|
||||
Py_UCS4 *item = (Py_UCS4 *)self->ob_item;
|
||||
item = (char *)PyMem_Realloc(item, n * sizeof(Py_UCS4));
|
||||
item = (Py_UCS4 *)PyMem_Realloc(item, n * sizeof(Py_UCS4));
|
||||
if (item == NULL) {
|
||||
PyErr_NoMemory();
|
||||
Py_DECREF(a);
|
||||
|
Loading…
Reference in New Issue
Block a user