Commit 50d5a1c3 authored by Thomas Heller's avatar Thomas Heller

Make ast.c compile on Windows again.

parent d56976c9
......@@ -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++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment