mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
New fix for bug 80034: Expressions view does not display correct no. of elements in array.
This commit is contained in:
parent
c50120a815
commit
02ba697651
3 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-12-01 Mikhail Khodjaiants
|
||||
New fix for bug 80034: Expressions view does not display correct no. of elements in array.
|
||||
* CValueFactory.java
|
||||
* CExpression.java
|
||||
|
||||
2004-12-03 Mikhail Khodjaiants
|
||||
Fix for bug 62659: Unable to set default for register format via plugin_customization.ini.
|
||||
* CDebugCorePreferenceInitializer.java: new
|
||||
|
|
|
@ -129,7 +129,7 @@ public class CExpression extends CVariable implements IExpression {
|
|||
if ( type != null && type.isArray() ) {
|
||||
int[] dims = type.getArrayDimensions();
|
||||
if ( dims.length > 0 && dims[0] > 0 )
|
||||
fValue = CValueFactory.createIndexedValue( this, (ICDIArrayValue)value, 0, dims[0] - 1 );
|
||||
fValue = CValueFactory.createIndexedValue( this, (ICDIArrayValue)value, 0, dims[0] );
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -27,8 +27,8 @@ public class CValueFactory {
|
|||
return new CValue( parent, cdiValue );
|
||||
}
|
||||
|
||||
static public CIndexedValue createIndexedValue( AbstractCVariable parent, ICDIArrayValue cdiValue, int start, int end ) {
|
||||
return new CIndexedValue( parent, cdiValue, start, end - start + 1 );
|
||||
static public CIndexedValue createIndexedValue( AbstractCVariable parent, ICDIArrayValue cdiValue, int start, int length ) {
|
||||
return new CIndexedValue( parent, cdiValue, start, length );
|
||||
}
|
||||
|
||||
static public CValue createGlobalValue( CVariable parent, ICDIValue cdiValue ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue