http://hg.python.org/cpython/rev/e88fc377f961 changeset: 72544:e88fc377f961 user: Victor Stinner <victor.stinner@haypocalc.com> date: Fri Sep 30 01:55:49 2011 +0200 summary: Fix a compiler warning files: Modules/arraymodule.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -2538,7 +2538,7 @@ 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); -- Repository URL: http://hg.python.org/cpython
participants (1)
-
victor.stinner