Skip to content

Commit 1fe99a2

Browse files
author
Victor Stinner
committed
Fix a compiler warning
1 parent 1fbcaef commit 1fe99a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/arraymodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2538,7 +2538,7 @@ array_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
25382538
if (n > 0) {
25392539
arrayobject *self = (arrayobject *)a;
25402540
Py_UCS4 *item = (Py_UCS4 *)self->ob_item;
2541-
item = (char *)PyMem_Realloc(item, n * sizeof(Py_UCS4));
2541+
item = (Py_UCS4 *)PyMem_Realloc(item, n * sizeof(Py_UCS4));
25422542
if (item == NULL) {
25432543
PyErr_NoMemory();
25442544
Py_DECREF(a);

0 commit comments

Comments
 (0)