From 01c757e09afbc6ae401a56e9f588b21cea54b613 Mon Sep 17 00:00:00 2001 From: Alexandre Jesus Date: Mon, 6 Nov 2017 18:27:28 +0000 Subject: Add nem_ull with shuffle --- src/dfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dfs.c') diff --git a/src/dfs.c b/src/dfs.c index 12f4ee2..172ac0b 100644 --- a/src/dfs.c +++ b/src/dfs.c @@ -88,6 +88,8 @@ struct online_return dfs_online(struct data * data, struct front_item * front, s * Free leaf; * Continue; */ + change++; + if(tree->depth == data->N) { front_last->next = new_front_item(tree->values.p, tree->values.w, front_last, NULL); front_last = front_last->next; @@ -100,8 +102,6 @@ struct online_return dfs_online(struct data * data, struct front_item * front, s tree = tree->next; free(old); - change++; - continue; } -- cgit v1.2.3