[SCM] OCE packaging branch, debian, updated. debian/0.11-1
Massimo Del Fedele
max at veneto.com
Thu Dec 13 19:16:48 UTC 2012
The following commit has been merged in the debian branch:
commit 6521f02baf766dadd169e958ed54ffca7f73b9e5
Author: Massimo Del Fedele <max at veneto.com>
Date: Fri Nov 30 00:05:34 2012 +0100
SortTools_Quicksort : fix for out-of-bound exception
diff --git a/inc/SortTools_QuickSort.gxx b/inc/SortTools_QuickSort.gxx
index 0b928d6..8c513b4 100644
--- a/inc/SortTools_QuickSort.gxx
+++ b/inc/SortTools_QuickSort.gxx
@@ -54,10 +54,10 @@ static void SortRecursive(Array& TheArray,
Back = Back - 1;
}
for(;;) {
- while (Comp.IsLower(TheArray(Front), Pivot)) {
+ while (Front < TheArray.Upper() && Comp.IsLower(TheArray(Front), Pivot)) {
Front = Front + 1;
}
- while (Comp.IsLower(Pivot, TheArray(Back))) {
+ while (Back > TheArray.Lower() && Comp.IsLower(Pivot, TheArray(Back))) {
Back = Back - 1;
}
if(Front <= Back) {
--
OCE packaging
More information about the debian-science-commits
mailing list