[Python-checkins] cpython: fix compilation on Windows

victor.stinner python-checkins at python.org
Thu May 16 22:17:43 CEST 2013


http://hg.python.org/cpython/rev/d1ba1228a04f
changeset:   83792:d1ba1228a04f
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Thu May 16 22:17:17 2013 +0200
summary:
  fix compilation on Windows

files:
  Python/compile.c |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Python/compile.c b/Python/compile.c
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -1360,10 +1360,11 @@
 static int
 get_ref_type(struct compiler *c, PyObject *name)
 {
+    int scope;
     if (c->u->u_scope_type == COMPILER_SCOPE_CLASS &&
         !PyUnicode_CompareWithASCIIString(name, "__class__"))
         return CELL;
-    int scope = PyST_GetScope(c->u->u_ste, name);
+    scope = PyST_GetScope(c->u->u_ste, name);
     if (scope == 0) {
         char buf[350];
         PyOS_snprintf(buf, sizeof(buf),

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list