diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-01-08 06:27:54 -0800 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-01-08 06:27:54 -0800 |
commit | d38a7663239ea4f4a5a0844d4e27b83f1883938c (patch) | |
tree | fb36b3f1ae999b94c64e6b1d1343c79b0c3e2601 /src/library | |
parent | cafeb34d0480aa0abb088a4315fbe087d0769158 (diff) | |
parent | feebc7131c669b212e6a6ff73585a879baff2c48 (diff) | |
download | scala-d38a7663239ea4f4a5a0844d4e27b83f1883938c.tar.gz scala-d38a7663239ea4f4a5a0844d4e27b83f1883938c.tar.bz2 scala-d38a7663239ea4f4a5a0844d4e27b83f1883938c.zip |
Merge pull request #3301 from Ichoran/issue/7837
Resolves SI-7837, failure in quickSort.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/util/Sorting.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/util/Sorting.scala b/src/library/scala/util/Sorting.scala index 276e157f55..2e021ad9d9 100644 --- a/src/library/scala/util/Sorting.scala +++ b/src/library/scala/util/Sorting.scala @@ -141,14 +141,14 @@ object Sorting { var done = false while (!done) { while (b <= c && x(b) <= v) { - if (x(b) == v) { + if (x(b) equiv v) { swap(a, b) a += 1 } b += 1 } while (c >= b && x(c) >= v) { - if (x(c) == v) { + if (x(c) equiv v) { swap(c, d) d -= 1 } |