diff options
author | Thomas Heller <theller@ctypes.org> | 2008-11-25 12:35:58 +0000 |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2008-11-25 12:35:58 +0000 |
commit | 0069d01ba743fdb059d3d4e5525f10446c83928d (patch) | |
tree | 055e79a4dbc31fffdb48f2d6119d64ed32e81b6b /Python/ast.c | |
parent | f801b54ebf2f9f5ff1ac01513429af7df89f99f5 (diff) | |
download | cpython-0069d01ba743fdb059d3d4e5525f10446c83928d.tar.gz |
Make ast.c compile on Windows again.
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 3 |
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++) { |