Mercurial > hg > Database > Alice
changeset 288:d2a448133bbd
Remove unused initializing.
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Oct 2013 03:18:53 +0900 |
parents | 1966ac18d751 |
children | 3f29a59267e2 |
files | src/alice/test/codesegment/local/bitonicsort/Sort.java |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alice/test/codesegment/local/bitonicsort/Sort.java Fri Oct 18 03:14:21 2013 +0900 +++ b/src/alice/test/codesegment/local/bitonicsort/Sort.java Fri Oct 18 03:18:53 2013 +0900 @@ -6,7 +6,6 @@ public static void quickSort(DataList data){ int[] stack = new int[8192]; int sp = 0; - int p = 0; int begin = 0; int end = data.table.length-1; // index is up to length-1 while(true){ @@ -18,7 +17,7 @@ int where = (begin+end)/2; int pivot = data.table[where]; data.table[where] = data.table[begin]; - p = begin; + int p = begin; for (int i=begin+1;i<=end;i++){ if (data.table[i]<pivot){ p++;