Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 72748:542c8da10de9
Fix compilation under Windows
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Thu, 06 Oct 2011 15:25:32 +0200 |
| parents | bc2a43943507 |
| children | 9a91ab415109 |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Thu Oct 06 13:27:56 2011 +0200 +++ b/Objects/unicodeobject.c Thu Oct 06 15:25:32 2011 +0200 @@ -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) {
