diff --git a/AK/QuickSort.h b/AK/QuickSort.h index 01834c6f8a..790c25786c 100644 --- a/AK/QuickSort.h +++ b/AK/QuickSort.h @@ -12,7 +12,7 @@ template void quick_sort(Iterator start, Iterator end, LessThan less_than = is_less_than) { int size = end - start; - if (size <= 0) + if (size <= 1) return; int pivot_point = size / 2;