summaryrefslogtreecommitdiff
path: root/Python/ast.c
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2008-11-25 12:35:58 +0000
committerThomas Heller <theller@ctypes.org>2008-11-25 12:35:58 +0000
commit0069d01ba743fdb059d3d4e5525f10446c83928d (patch)
tree055e79a4dbc31fffdb48f2d6119d64ed32e81b6b /Python/ast.c
parentf801b54ebf2f9f5ff1ac01513429af7df89f99f5 (diff)
downloadcpython-0069d01ba743fdb059d3d4e5525f10446c83928d.tar.gz
Make ast.c compile on Windows again.
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 9af7d221ec..7c059debb3 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++) {