]> granicus.if.org Git - python/commitdiff
Make ast.c compile on Windows again.
authorThomas Heller <theller@ctypes.org>
Tue, 25 Nov 2008 12:35:58 +0000 (12:35 +0000)
committerThomas Heller <theller@ctypes.org>
Tue, 25 Nov 2008 12:35:58 +0000 (12:35 +0000)
Python/ast.c

index 9af7d221ec4882d1e8c918ffa75a3ab7bd5497ba..7c059debb3d7c0812e5e84d3652ea1ca65ac28bb 100644 (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++) {