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

Skip to content

Commit d8fe7ab

Browse files
committed
analyze_cells(): This no longer compiled under VC 7.1.
Move declaration of local `flags` to top of block.
1 parent 46aae19 commit d8fe7ab

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Python/symtable.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,9 @@ analyze_cells(PyObject *scope, PyObject *free)
432432
if (!w)
433433
return 0;
434434
while (PyDict_Next(scope, &pos, &name, &v)) {
435+
long flags;
435436
assert(PyInt_Check(v));
436-
long flags = PyInt_AS_LONG(v);
437+
flags = PyInt_AS_LONG(v);
437438
if (flags != LOCAL)
438439
continue;
439440
if (!PyDict_GetItem(free, name))

0 commit comments

Comments
 (0)