diff options
Diffstat (limited to 'src/dfs.c')
-rw-r--r-- | src/dfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |