aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/modules/sort.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/elflink/modules/sort.c')
-rw-r--r--com32/elflink/modules/sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/elflink/modules/sort.c b/com32/elflink/modules/sort.c
index a6f854d9..bec0ef2a 100644
--- a/com32/elflink/modules/sort.c
+++ b/com32/elflink/modules/sort.c
@@ -46,7 +46,7 @@ static void quick_sort_range(int *nums, int l, int u) {
swap(&nums[l], &nums[randint(l, u)]);
- m = 1;
+ m = l;
for (i = l+1; i <= u; i++) {
if (nums[i] < nums[l])
swap(&nums[++m], &nums[i]);