]> granicus.if.org Git - python/commitdiff
analyze_cells(): This no longer compiled under VC 7.1.
authorTim Peters <tim.peters@gmail.com>
Sun, 8 Jan 2006 02:19:07 +0000 (02:19 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 8 Jan 2006 02:19:07 +0000 (02:19 +0000)
Move declaration of local `flags` to top of block.

Python/symtable.c

index 915324df1e90bc3a6f75d49d82b1ec3fe5ad6c39..7e876d4c964b1d1566918fa296364592d7e6765c 100644 (file)
@@ -432,8 +432,9 @@ analyze_cells(PyObject *scope, PyObject *free)
        if (!w)
                return 0;
        while (PyDict_Next(scope, &pos, &name, &v)) {
+               long flags;
                assert(PyInt_Check(v));
-               long flags = PyInt_AS_LONG(v);
+               flags = PyInt_AS_LONG(v);
                if (flags != LOCAL)
                        continue;
                if (!PyDict_GetItem(free, name))