mirror of
https://github.com/apple/pkl.git
synced 2026-02-25 11:54:57 +01:00
Fix MergeSort.java
This commit is contained in:
committed by
Philip K.F. Hölzenspies
parent
d916345d2c
commit
35490dc559
@@ -58,7 +58,7 @@ final class MergeSort {
|
||||
SortComparatorNode comparator,
|
||||
@Nullable VmFunction function) {
|
||||
|
||||
if (comparator.executeWith(array[mid], array[mid], function)) {
|
||||
if (comparator.executeWith(array[mid-1], array[mid], function)) {
|
||||
return; // already sorted
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user