mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-11 18:25:40 +02:00
2004-08-14 Alain Magloire
Fix for 71992. * CType.java
This commit is contained in:
parent
8c89e95337
commit
6accf8fc2d
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2004-08-14 Alain Magloire
|
||||||
|
Fix for 71992.
|
||||||
|
* CType.java
|
||||||
|
|
||||||
2004-08-05 Mikhail Khodjaiants
|
2004-08-05 Mikhail Khodjaiants
|
||||||
Restrict the "display as array" operation to the pointer types only.
|
Restrict the "display as array" operation to the pointer types only.
|
||||||
* CVariable.java
|
* CVariable.java
|
||||||
|
|
|
@ -61,8 +61,8 @@ public class CType implements ICType {
|
||||||
}
|
}
|
||||||
int[] dims = new int[length];
|
int[] dims = new int[length];
|
||||||
type = getCDIType();
|
type = getCDIType();
|
||||||
for( int i = length; i > 0; --i ) {
|
for (int i = 0; i < length; i++) {
|
||||||
dims[i - 1] = ((ICDIArrayType)type).getDimension();
|
dims[i] = ((ICDIArrayType)type).getDimension();
|
||||||
type = ((ICDIDerivedType)type).getComponentType();
|
type = ((ICDIDerivedType)type).getComponentType();
|
||||||
}
|
}
|
||||||
return dims;
|
return dims;
|
||||||
|
|
Loading…
Add table
Reference in a new issue