mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
analyze_cells(): This no longer compiled under VC 7.1.
Move declaration of local `flags` to top of block.
This commit is contained in:
parent
46aae198ad
commit
d8fe7ab711
1 changed files with 2 additions and 1 deletions
|
|
@ -432,8 +432,9 @@ analyze_cells(PyObject *scope, PyObject *free)
|
||||||
if (!w)
|
if (!w)
|
||||||
return 0;
|
return 0;
|
||||||
while (PyDict_Next(scope, &pos, &name, &v)) {
|
while (PyDict_Next(scope, &pos, &name, &v)) {
|
||||||
|
long flags;
|
||||||
assert(PyInt_Check(v));
|
assert(PyInt_Check(v));
|
||||||
long flags = PyInt_AS_LONG(v);
|
flags = PyInt_AS_LONG(v);
|
||||||
if (flags != LOCAL)
|
if (flags != LOCAL)
|
||||||
continue;
|
continue;
|
||||||
if (!PyDict_GetItem(free, name))
|
if (!PyDict_GetItem(free, name))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue