From: Thomas Heller Date: Tue, 25 Nov 2008 12:35:58 +0000 (+0000) Subject: Make ast.c compile on Windows again. X-Git-Tag: v3.0~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50d5a1c37324405104a097389515a0ef4f9705f3;p=thirdparty%2FPython%2Fcpython.git Make ast.c compile on Windows again. --- diff --git a/Python/ast.c b/Python/ast.c index 9af7d221ec48..7c059debb3d7 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++) {