From: Antoine Pitrou Date: Thu, 6 Oct 2011 13:25:32 +0000 (+0200) Subject: Fix compilation under Windows X-Git-Tag: v3.3.0a1~1287 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=15a66cf1348cfd9471bb3080799f203f8ddddf96;p=thirdparty%2FPython%2Fcpython.git Fix compilation under Windows --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 4e4e53cfd483..2c38ed0a6d57 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1780,8 +1780,9 @@ unicode_adjust_maxchar(PyObject **p_unicode) } } 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) {