Commit f91141b1 by Jeroen Frijters Committed by Tom Tromey

re PR classpath/31646 (Arrays.sort() broken)

2007-04-23  Jeroen Frijters  <jeroen@frijters.net>

	PR classpath/31646:
	* java/util/Arrays.java (qsort): Corrected initial median calculation.

From-SVN: r124071
parent 9a072eb6
2007-04-23 Jeroen Frijters <jeroen@frijters.net>
PR classpath/31646:
* java/util/Arrays.java (qsort): Corrected initial median calculation.
2007-04-19 Casey Marshall <csm@gnu.org>
PR classpath/31626:
......@@ -1040,7 +1040,7 @@ public class Arrays
}
// Determine a good median element.
int mid = count / 2;
int mid = from + count / 2;
int lo = from;
int hi = from + count - 1;
......@@ -1204,7 +1204,7 @@ public class Arrays
}
// Determine a good median element.
int mid = count / 2;
int mid = from + count / 2;
int lo = from;
int hi = from + count - 1;
......@@ -1368,7 +1368,7 @@ public class Arrays
}
// Determine a good median element.
int mid = count / 2;
int mid = from + count / 2;
int lo = from;
int hi = from + count - 1;
......@@ -1544,7 +1544,7 @@ public class Arrays
}
// Determine a good median element.
int mid = count / 2;
int mid = from + count / 2;
int lo = from;
int hi = from + count - 1;
......@@ -1720,7 +1720,7 @@ public class Arrays
}
// Determine a good median element.
int mid = count / 2;
int mid = from + count / 2;
int lo = from;
int hi = from + count - 1;
......@@ -1890,7 +1890,7 @@ public class Arrays
}
// Determine a good median element.
int mid = count / 2;
int mid = from + count / 2;
int lo = from;
int hi = from + count - 1;
......@@ -2060,7 +2060,7 @@ public class Arrays
}
// Determine a good median element.
int mid = count / 2;
int mid = from + count / 2;
int lo = from;
int hi = from + count - 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment