diff options
author | Jeroen Frijters <jeroen@sumatra.nl> | 2007-04-23 10:21:36 +0000 |
---|---|---|
committer | Jeroen Frijters <jeroen@sumatra.nl> | 2007-04-23 10:21:36 +0000 |
commit | 80edd2ddcc3e20a60876a21a05c81e623e7c5c52 (patch) | |
tree | b96c6d82c78bcc8cc1bc04e096f1afe4a7933d4a /java/util | |
parent | bd8db76d9f8520d21e0cd81f47c8c48444b3b391 (diff) | |
download | classpath-80edd2ddcc3e20a60876a21a05c81e623e7c5c52.tar.gz |
2007-04-23 Jeroen Frijters <jeroen@frijters.net>
PR classpath/31646:
* java/util/Arrays.java (qsort): Corrected initial median calculation.
Diffstat (limited to 'java/util')
-rw-r--r-- | java/util/Arrays.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/java/util/Arrays.java b/java/util/Arrays.java index 8f7049377..9443ced5b 100644 --- a/java/util/Arrays.java +++ b/java/util/Arrays.java @@ -1309,7 +1309,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; @@ -1473,7 +1473,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; @@ -1637,7 +1637,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; @@ -1813,7 +1813,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; @@ -1989,7 +1989,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; @@ -2159,7 +2159,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; @@ -2329,7 +2329,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; |