From: Tim Peters Date: Sun, 8 Jan 2006 02:19:07 +0000 (+0000) Subject: analyze_cells(): This no longer compiled under VC 7.1. X-Git-Tag: v2.5a0~861 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8fe7ab711df2d6380aeff085fe8eda6b268f3eb;p=python analyze_cells(): This no longer compiled under VC 7.1. Move declaration of local `flags` to top of block. --- diff --git a/Python/symtable.c b/Python/symtable.c index 915324df1e..7e876d4c96 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))