From: Victor Stinner Date: Thu, 29 Sep 2011 23:55:49 +0000 (+0200) Subject: Fix a compiler warning X-Git-Tag: v3.3.0a1~1426 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1fe99a2ea7c0f54b19153fce352be456b2613b94;p=thirdparty%2FPython%2Fcpython.git Fix a compiler warning --- diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 3f9128944a58..00325940b7e7 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -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);