Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jfbourdon committed Aug 1, 2024
1 parent ce306d8 commit 04db4ad
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,8 @@ impl WhiteboxTool for BreachDepressionsLeastCost {

/* Vec is a stack and so if we want to pop the values from lowest to highest, we need to sort
them from highest to lowest. */
undefined_flow_cells.sort_by(|a, b| b.0.partial_cmp(&a.0).unwrap_or(Equal));
undefined_flow_cells.sort_by(|a, b| b.1.partial_cmp(&a.1).unwrap_or(Equal));
undefined_flow_cells.sort_by(|a, b| b.2.partial_cmp(&a.2).unwrap_or(Equal));
let num_deps = undefined_flow_cells.len();
if num_deps == 0 && verbose {
Expand Down

0 comments on commit 04db4ad

Please sign in to comment.