Fix MergeSort.java

This commit is contained in:
Jungwoo Yang authored and Philip K.F. Hölzenspies committed 2024-04-05 11:18:02 +01:00
1 parent d916345d2c
commit 35490dc559
1 file changed
+1 -1
@@ -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
}