Debugger: Fix problem in ArrayValueNode.

- The requested child indices weren't being correctly capped to the
  supported lower and upper bound.
This commit is contained in:
Rene Gollent 2014-12-09 22:45:59 -05:00
parent af76b51633
commit d621fb88d7
1 changed files with 5 additions and 5 deletions

View File

@ -137,13 +137,13 @@ AbstractArrayValueNode::CreateChildrenInRange(int32 lowIndex,
fLowerBound = lowerBound;
fUpperBound = upperBound;
fBoundsInitialized = true;
} else {
if (lowIndex < fLowerBound)
fLowerBound = lowIndex;
if (highIndex > fUpperBound)
fUpperBound = highIndex;
}
if (lowIndex < fLowerBound)
lowIndex = fLowerBound;
if (highIndex > fUpperBound)
highIndex = fUpperBound;
// create children for the array elements
for (int32 i = lowIndex; i <= highIndex; i++) {
BString name(Name());