diff options
-rw-r--r-- | src/pugixml.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 79a8fdf..1589eae 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -3981,9 +3981,9 @@ namespace pugi while (cur && cur != *this);
}
- if (!walker.end(*this)) return false;
-
- return true;
+ assert(walker._depth == -1);
+
+ return walker.end(*this);
}
unsigned int xml_node::document_order() const
|