commit | 1fe99a2ea7c0f54b19153fce352be456b2613b94 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Fri Sep 30 01:55:49 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Fri Sep 30 01:55:49 2011 +0200 |
tree | 4d9354f22556449792ba50b418cb8953e3ea794b | |
parent | 1fbcaeff55ce799b75b787726ef362dd7470f253 [diff] |
Fix a compiler warning
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 @@ 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);