aboutsummaryrefslogtreecommitdiff
path: root/Source/Swig/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Swig/tree.c')
-rw-r--r--Source/Swig/tree.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Swig/tree.c b/Source/Swig/tree.c
index 79f708d33..d817f1a85 100644
--- a/Source/Swig/tree.c
+++ b/Source/Swig/tree.c
@@ -171,11 +171,10 @@ void prependChild(Node *node, Node *chd) {
}
}
-void appendSibling(Node *node, Node *chd)
-{
+void appendSibling(Node *node, Node *chd) {
Node *parent;
- Node* lc = node;
- while(nextSibling(lc))
+ Node *lc = node;
+ while (nextSibling(lc))
lc = nextSibling(lc);
set_nextSibling(lc, chd);
set_previousSibling(chd, lc);