summaryrefslogtreecommitdiffstats
path: root/Modules/arraymodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-09-29 23:55:49 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-09-29 23:55:49 (GMT)
commit1fe99a2ea7c0f54b19153fce352be456b2613b94 (patch)
tree4d9354f22556449792ba50b418cb8953e3ea794b /Modules/arraymodule.c
parent1fbcaeff55ce799b75b787726ef362dd7470f253 (diff)
downloadcpython-1fe99a2ea7c0f54b19153fce352be456b2613b94.zip
cpython-1fe99a2ea7c0f54b19153fce352be456b2613b94.tar.gz
cpython-1fe99a2ea7c0f54b19153fce352be456b2613b94.tar.bz2
Fix a compiler warning
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r--Modules/arraymodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
index 3f91289..0032594 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);