Skip to content

Commit 29db5ae

Browse files
committed
Merge remote-tracking branch 'upstream/master' into refactor_min_cut
2 parents b64d992 + 2bcb0d1 commit 29db5ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/twosat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ mod tests {
7575
}
7676

7777
//Check the min distance between flags
78-
res.sort();
78+
res.sort_unstable();
7979
let mut min_distance = i32::max_value();
8080
for i in 1..res.len() {
8181
min_distance = std::cmp::min(min_distance, res[i] - res[i - 1]);

0 commit comments

Comments
 (0)