summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2008-11-25 12:35:58 (GMT)
committerThomas Heller <theller@ctypes.org>2008-11-25 12:35:58 (GMT)
commit50d5a1c37324405104a097389515a0ef4f9705f3 (patch)
treeb0ef1875e4a24f631f7aa1e0b1738d3bcc7fe7db /Python
parentd56976c9a298074c38efcd4cc32ee0459a5aa096 (diff)
downloadcpython-50d5a1c37324405104a097389515a0ef4f9705f3.zip
cpython-50d5a1c37324405104a097389515a0ef4f9705f3.tar.gz
cpython-50d5a1c37324405104a097389515a0ef4f9705f3.tar.bz2
Make ast.c compile on Windows again.
Diffstat (limited to 'Python')
-rw-r--r--Python/ast.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 9af7d22..7c059de 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -51,9 +51,10 @@ static identifier
new_identifier(const char* n, PyArena *arena)
{
PyObject* id = PyUnicode_DecodeUTF8(n, strlen(n), NULL);
+ Py_UNICODE *u;
if (!id)
return NULL;
- Py_UNICODE *u = PyUnicode_AS_UNICODE(id);
+ u = PyUnicode_AS_UNICODE(id);
/* Check whether there are non-ASCII characters in the
identifier; if so, normalize to NFKC. */
for (; *u; u++) {