[Python-checkins] cpython: Fix Windows compilation errors

eli.bendersky python-checkins at python.org
Wed Apr 4 14:57:06 CEST 2012


http://hg.python.org/cpython/rev/118729090dc5
changeset:   76101:118729090dc5
user:        Eli Bendersky <eliben at gmail.com>
date:        Wed Apr 04 15:55:07 2012 +0300
summary:
  Fix Windows compilation errors

files:
  Modules/_elementtree.c |  6 ++++--
  1 files changed, 4 insertions(+), 2 deletions(-)


diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
--- a/Modules/_elementtree.c
+++ b/Modules/_elementtree.c
@@ -264,17 +264,19 @@
 LOCAL(void)
 dealloc_extra(ElementObject* self)
 {
+    ElementObjectExtra *myextra;
+    int i;
+
     if (!self->extra)
         return;
 
     /* Avoid DECREFs calling into this code again (cycles, etc.)
     */
-    ElementObjectExtra *myextra = self->extra;
+    myextra = self->extra;
     self->extra = NULL;
 
     Py_DECREF(myextra->attrib);
 
-    int i;
     for (i = 0; i < myextra->length; i++)
         Py_DECREF(myextra->children[i]);
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list