1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

2004-08-14 Alain Magloire

Fix for 71992.
	* CType.java
This commit is contained in:
Alain Magloire 2004-08-15 01:55:41 +00:00
parent 8c89e95337
commit 6accf8fc2d
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2004-08-14 Alain Magloire
Fix for 71992.
* CType.java
2004-08-05 Mikhail Khodjaiants
Restrict the "display as array" operation to the pointer types only.
* CVariable.java

View file

@ -61,8 +61,8 @@ public class CType implements ICType {
}
int[] dims = new int[length];
type = getCDIType();
for( int i = length; i > 0; --i ) {
dims[i - 1] = ((ICDIArrayType)type).getDimension();
for (int i = 0; i < length; i++) {
dims[i] = ((ICDIArrayType)type).getDimension();
type = ((ICDIDerivedType)type).getComponentType();
}
return dims;