1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 23:05:47 +02:00

ArrayIndexOutOfBound bug fix.

This commit is contained in:
Alain Magloire 2002-09-11 00:15:49 +00:00
parent 43e52e0f88
commit 68b68482f3

View file

@ -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()] );
}