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:
parent
af76b51633
commit
d621fb88d7
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue