summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-01-08 02:19:07 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-01-08 02:19:07 (GMT)
commitd8fe7ab711df2d6380aeff085fe8eda6b268f3eb (patch)
tree6eb6e24d4a5c8399b1c6207eba636e9f406f6b8c /Python
parent46aae198ad5178313271790cf7209843045346b6 (diff)
downloadcpython-d8fe7ab711df2d6380aeff085fe8eda6b268f3eb.zip
cpython-d8fe7ab711df2d6380aeff085fe8eda6b268f3eb.tar.gz
cpython-d8fe7ab711df2d6380aeff085fe8eda6b268f3eb.tar.bz2
analyze_cells(): This no longer compiled under VC 7.1.
Move declaration of local `flags` to top of block.
Diffstat (limited to 'Python')
-rw-r--r--Python/symtable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/symtable.c b/Python/symtable.c
index 915324d..7e876d4 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -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))