]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix a compiler warning
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 29 Sep 2011 23:55:49 +0000 (01:55 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 29 Sep 2011 23:55:49 +0000 (01:55 +0200)
Modules/arraymodule.c

index 3f9128944a586f3def5471d6941d6b277e0c7f40..00325940b7e7ae9205fd332e7e4f77af0fdee85f 100644 (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);