diff options
| author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-30 01:55:49 +0200 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-30 01:55:49 +0200 |
| commit | 1fe99a2ea7c0f54b19153fce352be456b2613b94 (patch) | |
| tree | 4d9354f22556449792ba50b418cb8953e3ea794b /Modules/arraymodule.c | |
| parent | 1fbcaeff55ce799b75b787726ef362dd7470f253 (diff) | |
| download | cpython-git-1fe99a2ea7c0f54b19153fce352be456b2613b94.tar.gz | |
Fix a compiler warning
Diffstat (limited to 'Modules/arraymodule.c')
| -rw-r--r-- | Modules/arraymodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 3f9128944a..00325940b7 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); |
