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
This commit is contained in:
Jeroen Frijters 2007-04-23 16:15:51 +00:00 committed by Tom Tromey
parent 9a072eb638
commit f91141b1a2
3 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,8 @@
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:

View File

@ -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;