[Python-checkins] cpython: Fix windows compilation problems caused by previous commit.
eli.bendersky
python-checkins at python.org
Fri Jun 15 06:54:18 CEST 2012
http://hg.python.org/cpython/rev/3c089edbf02c
changeset: 77432:3c089edbf02c
user: Eli Bendersky <eliben at gmail.com>
date: Fri Jun 15 07:52:49 2012 +0300
summary:
Fix windows compilation problems caused by previous commit.
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
@@ -1840,6 +1840,8 @@
* - itertext() also has to handle tail, after finishing with all the
* children of a node.
*/
+ ElementObject *cur_parent;
+ Py_ssize_t child_index;
while (1) {
/* Handle the case reached in the beginning and end of iteration, where
@@ -1881,8 +1883,8 @@
/* See if there are children left to traverse in the current parent. If
* yes, visit the next child. If not, pop the stack and try again.
*/
- ElementObject *cur_parent = it->parent_stack->parent;
- Py_ssize_t child_index = it->parent_stack->child_index;
+ cur_parent = it->parent_stack->parent;
+ child_index = it->parent_stack->child_index;
if (cur_parent->extra && child_index < cur_parent->extra->length) {
ElementObject *child = (ElementObject *)
cur_parent->extra->children[child_index];
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list