Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 50d5a1c

Browse files
author
Thomas Heller
committed
Make ast.c compile on Windows again.
1 parent d56976c commit 50d5a1c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Python/ast.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ static identifier
5151
new_identifier(const char* n, PyArena *arena)
5252
{
5353
PyObject* id = PyUnicode_DecodeUTF8(n, strlen(n), NULL);
54+
Py_UNICODE *u;
5455
if (!id)
5556
return NULL;
56-
Py_UNICODE *u = PyUnicode_AS_UNICODE(id);
57+
u = PyUnicode_AS_UNICODE(id);
5758
/* Check whether there are non-ASCII characters in the
5859
identifier; if so, normalize to NFKC. */
5960
for (; *u; u++) {

0 commit comments

Comments
 (0)