Skip to content

Commit

Permalink
partly revert
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterRK committed Apr 30, 2022
1 parent 9f8f3ee commit 347f8f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sort.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,8 @@ func blockPartition[T constraints.Ordered](list []T) int {
if l >= r {
goto finish
}
if list[l] != list[r] {
list[l], list[r] = list[r], list[l]
list[l], list[r] = list[r], list[l]
if (pattern&2) == 0 && list[l] != list[r] {
pattern |= 2
}
l++
Expand Down Expand Up @@ -647,8 +647,8 @@ func blockPartition[T constraints.Ordered](list []T) int {
if l >= r {
break
}
if list[l] != list[r] {
list[l], list[r] = list[r], list[l]
list[l], list[r] = list[r], list[l]
if (pattern&2) == 0 && list[l] != list[r] {
pattern |= 2
}
l++
Expand Down

0 comments on commit 347f8f4

Please sign in to comment.