commit | 15a66cf1348cfd9471bb3080799f203f8ddddf96 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Thu Oct 06 15:25:32 2011 +0200 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Thu Oct 06 15:25:32 2011 +0200 |
tree | 0f9dd4c389f1a39aa54464e0161df36b50549bfc | |
parent | 200f21340d333f3204ef514bcb0890a2b62c7f5e [diff] [blame] |
Fix compilation under Windows
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 4e4e53c..2c38ed0 100644 --- 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) {