From: W. Trevor King Date: Fri, 29 Oct 2010 15:38:09 +0000 (-0400) Subject: Revert ebbd9d49a9741639f255e885bf56f637c28eeda7. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=02d88b2822552e8899918a008e90de97895c52ec;p=parallel_computing.git 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. --- 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); } }