]> granicus.if.org Git - python/commitdiff
Fix Windows compilation errors
authorEli Bendersky <eliben@gmail.com>
Wed, 4 Apr 2012 12:55:07 +0000 (15:55 +0300)
committerEli Bendersky <eliben@gmail.com>
Wed, 4 Apr 2012 12:55:07 +0000 (15:55 +0300)
Modules/_elementtree.c

index 5425269c1ad643e882da5f26d5d8f922bf5bb6cc..c5bbc80868c50c6f3aa299b848624fc0bffdd74b 100644 (file)
@@ -264,17 +264,19 @@ create_extra(ElementObject* self, PyObject* attrib)
 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]);