diff example/many_task/ppe/QuickSort.cc @ 1851:637fa9a4105b draft

fix many_task ( sort )
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 21 Dec 2013 19:42:17 +0900
parents 9ccfdc408d51
children 7e9ebc1b08b6
line wrap: on
line diff
--- a/example/many_task/ppe/QuickSort.cc	Sat Dec 21 10:28:18 2013 +0900
+++ b/example/many_task/ppe/QuickSort.cc	Sat Dec 21 19:42:17 2013 +0900
@@ -81,7 +81,7 @@
             data[where].index = data[begin].index;
             int i;
             p = begin;
-            for (i=begin+1; i<=end; i++) {
+            for (i=begin+1; i<end; i++) {
                 if (data[i].index < pivot) {
                     p++;
                     swap(data, p, i);