diff options
Diffstat (limited to 'test/files/run/Course-2002-04.scala')
-rw-r--r-- | test/files/run/Course-2002-04.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/files/run/Course-2002-04.scala b/test/files/run/Course-2002-04.scala index 733a290db2..e74711d454 100644 --- a/test/files/run/Course-2002-04.scala +++ b/test/files/run/Course-2002-04.scala @@ -59,7 +59,8 @@ object M1 { def sort1(l: Int, r: Int): Unit = { val pivot = xs((l + r) / 2); - var i = l, j = r; + var i = l; + var j = r; While (i <= j) { While (less(xs(i), pivot)) { i = i + 1 } While (less(pivot, xs(j))) { j = j - 1 } |