]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix compilation under Windows
authorAntoine Pitrou <solipsis@pitrou.net>
Thu, 6 Oct 2011 13:25:32 +0000 (15:25 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Thu, 6 Oct 2011 13:25:32 +0000 (15:25 +0200)
Objects/unicodeobject.c

index 4e4e53cfd483082f43d2f47ec089c26a5f293ab5..2c38ed0a6d5762fef0b8d8132277d7ad76ae1e7f 100644 (file)
@@ -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) {