Fix a compiler warning

This commit is contained in:
Victor Stinner 2011-09-30 01:55:49 +02:00
parent 1fbcaeff55
commit 1fe99a2ea7

View File

@ -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);