From 02d88b2822552e8899918a008e90de97895c52ec Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 29 Oct 2010 11:38:09 -0400 Subject: [PATCH] Revert ebbd9d49a9741639f255e885bf56f637c28eeda7. commit ebbd9d49a9741639f255e885bf56f637c28eeda7 Author: W. Trevor King Date: Mon Oct 25 12:54:21 2010 -0400 quicksort.c: Don't sort the portion of the list that matches the pivot. This left unsorted entries lying around, but I'm not quite sure why. --- src/sorting/quicksort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sorting/quicksort.c b/src/sorting/quicksort.c index e66453f..83d9b4a 100644 --- a/src/sorting/quicksort.c +++ b/src/sorting/quicksort.c @@ -47,7 +47,7 @@ void quicksort(double list[], int m, int n) // recursively sort the sub-lists quicksort(list, m, j - 1); - quicksort(list, i + 1, n); + quicksort(list, j + 1, n); } } -- 2.26.2