Fix out-of-bound bug pointed out by Ryan McFadden.
This commit is contained in:
parent
fb85d025bb
commit
f775ef3545
@ -6674,11 +6674,13 @@ void PMsrHandler::MakeDetectorGroupingString(TString str, PIntVector &group, TSt
|
||||
UInt_t i=0, j=0;
|
||||
do {
|
||||
j = i;
|
||||
if (j+1 < group.size()) {
|
||||
while (group[j]+1 == group[j+1]) {
|
||||
j++;
|
||||
if (j == group.size()-1)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (j >= i+2) {
|
||||
result += group[i];
|
||||
|
Loading…
x
Reference in New Issue
Block a user