Skip to content

Commit

Permalink
Make ast.c compile on Windows again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Heller committed Nov 25, 2008
1 parent d56976c commit 50d5a1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Python/ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 50d5a1c

Please sign in to comment.