Make ast.c compile on Windows again.

This commit is contained in:
Thomas Heller 2008-11-25 12:35:58 +00:00
parent d56976c9a2
commit 50d5a1c373
1 changed files with 2 additions and 1 deletions

View File

@ -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++) {