From: Geoffrey Allott Date: Sat, 7 Jan 2023 22:48:35 +0000 (+0000) Subject: simplify logic X-Git-Url: https://git.pointlesshacks.com/?a=commitdiff_plain;p=tANS.git simplify logic --- diff --git a/src/stree.c b/src/stree.c index 05b262c..4ec3f51 100644 --- a/src/stree.c +++ b/src/stree.c @@ -41,11 +41,8 @@ void node_dbg(const struct node *self, const struct node *root, size_t indent, c static void node_add_son(struct node *self, struct node *son) { - struct node *brother; - - brother = self->son; + son->brother = self->son; self->son = son; - son->brother = brother; } static void node_split_son(struct node *self, struct node *edge, struct node *split, struct node *son, size_t len)