diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-10-12 09:44:27 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-10-12 09:44:27 -0400 |
commit | ed2a50d63b25a7b72a32be07a33331544f587296 (patch) | |
tree | 340395e3fb58fe5f82a4258a5bfcba9cb1ec9f1c /src | |
parent | 778659e5fc758515428db40c353f45b201264802 (diff) | |
download | bfs-ed2a50d63b25a7b72a32be07a33331544f587296.tar.xz |
bftw: Let iterative deepening work depth-first when sorting
Diffstat (limited to 'src')
-rw-r--r-- | src/bftw.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -862,7 +862,7 @@ static bool bftw_pop_dir(struct bftw_state *state) { if (state->flags & BFTW_SORT) { // Keep strict breadth-first order when sorting - if (state->strategy != BFTW_DFS && have_files) { + if (state->strategy == BFTW_BFS && have_files) { return false; } } else { |