[Python-checkins] cpython: Fix compilation under Windows
antoine.pitrou
python-checkins at python.org
Thu Oct 6 15:29:09 CEST 2011
http://hg.python.org/cpython/rev/542c8da10de9
changeset: 72748:542c8da10de9
user: Antoine Pitrou <solipsis at pitrou.net>
date: Thu Oct 06 15:25:32 2011 +0200
summary:
Fix compilation under Windows
files:
Objects/unicodeobject.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -1780,8 +1780,9 @@
}
}
else {
+ const Py_UCS4 *u;
assert(kind == PyUnicode_4BYTE_KIND);
- const Py_UCS4 *u = PyUnicode_4BYTE_DATA(unicode);
+ u = PyUnicode_4BYTE_DATA(unicode);
max_char = 0;
for (i = 0; i < len; i++) {
if (u[i] > max_char) {
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list