diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-06 13:25:32 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-06 13:25:32 (GMT) |
commit | 15a66cf1348cfd9471bb3080799f203f8ddddf96 (patch) | |
tree | 0f9dd4c389f1a39aa54464e0161df36b50549bfc /Objects | |
parent | 200f21340d333f3204ef514bcb0890a2b62c7f5e (diff) | |
download | cpython-15a66cf1348cfd9471bb3080799f203f8ddddf96.zip cpython-15a66cf1348cfd9471bb3080799f203f8ddddf96.tar.gz cpython-15a66cf1348cfd9471bb3080799f203f8ddddf96.tar.bz2 |
Fix compilation under Windows
Diffstat (limited to 'Objects')
-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 4e4e53c..2c38ed0 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) { |