mirror of
https://github.com/python/cpython.git
synced 2025-10-07 15:42:02 +00:00
Fix a compiler warning
This commit is contained in:
parent
1fbcaeff55
commit
1fe99a2ea7
1 changed files with 1 additions and 1 deletions
|
@ -2538,7 +2538,7 @@ array_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||||
if (n > 0) {
|
if (n > 0) {
|
||||||
arrayobject *self = (arrayobject *)a;
|
arrayobject *self = (arrayobject *)a;
|
||||||
Py_UCS4 *item = (Py_UCS4 *)self->ob_item;
|
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) {
|
if (item == NULL) {
|
||||||
PyErr_NoMemory();
|
PyErr_NoMemory();
|
||||||
Py_DECREF(a);
|
Py_DECREF(a);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue