mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 06:45:43 +02:00
ArrayIndexOutOfBound bug fix.
This commit is contained in:
parent
43e52e0f88
commit
68b68482f3
1 changed files with 2 additions and 1 deletions
|
@ -98,8 +98,9 @@ public class CArrayPartitionValue extends CDebugElement implements ICValue
|
|||
if ( fVariables.isEmpty() )
|
||||
{
|
||||
fVariables = new ArrayList( getEnd() - getStart() + 1 );
|
||||
for ( int i = getStart(); i <= getEnd(); ++i )
|
||||
for ( int i = getStart(); i < getEnd(); ++i ) {
|
||||
fVariables.add( new CArrayEntryVariable( (CDebugTarget)getDebugTarget(), (ICDIVariable)fCDIVariables.get( i - getStart() ), i ) );
|
||||
}
|
||||
}
|
||||
return (IVariable[])fVariables.toArray( new IVariable[fVariables.size()] );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue