Skip to content

Commit

Permalink
Restoring the initial pivot calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
ripcurld00d committed Nov 7, 2012
1 parent ba569b7 commit dd99d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Array+.c
Expand Up @@ -310,7 +310,7 @@ static int Array_Sort_Partition(var self, int left, int right, int pivot) {

static void Array_Sort_Part(var self, int left, int right) {
if (left < right) {
int pivot = (right + left) / 2;
int pivot = left + (right - left) / 2;
int newpivot = Array_Sort_Partition(self, left, right, pivot);
Array_Sort_Part(self, left, newpivot-1);
Array_Sort_Part(self, newpivot+1, right);
Expand Down

0 comments on commit dd99d04

Please sign in to comment.