aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Bucur <stefanb@zytor.com>2008-08-11 20:04:54 +0300
committerStefan Bucur <stefan@stefan-ubumac.(none)>2009-03-15 10:10:50 +0200
commitd9bd9fb7f8e9305c95d63940b53324e97f2d7018 (patch)
treef87cf1267b9661025301b5f3a872d9a1d154c78c
parent9195aa5d71b5593742fcae9957e2e9328717fb12 (diff)
downloadsyslinux-elf-d9bd9fb7f8e9305c95d63940b53324e97f2d7018.tar.gz
syslinux-elf-d9bd9fb7f8e9305c95d63940b53324e97f2d7018.tar.xz
syslinux-elf-d9bd9fb7f8e9305c95d63940b53324e97f2d7018.zip
Fixed typo in quicksort algorithm.
-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]);