[Python-checkins] cpython: Fix a compiler warning

victor.stinner python-checkins at python.org
Fri Sep 30 01:55:35 CEST 2011


http://hg.python.org/cpython/rev/e88fc377f961
changeset: 72544:e88fc377f961
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Fri Sep 30 01:55:49 2011 +0200
summary:
 Fix a compiler warning
files:
 Modules/arraymodule.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
--- 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);
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /