diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-06 15:25:32 +0200 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-06 15:25:32 +0200 |
commit | 15a66cf1348cfd9471bb3080799f203f8ddddf96 (patch) | |
tree | 0f9dd4c389f1a39aa54464e0161df36b50549bfc | |
parent | 200f21340d333f3204ef514bcb0890a2b62c7f5e (diff) | |
download | cpython-git-15a66cf1348cfd9471bb3080799f203f8ddddf96.tar.gz |
Fix compilation under Windows
-rw-r--r-- | Objects/unicodeobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 4e4e53cfd4..2c38ed0a6d 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) { |