1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 18:56:02 +02:00

Array to pointer conversion for typedefs, bug 239931.

This commit is contained in:
Markus Schorn 2008-07-08 11:53:05 +00:00
parent 7f6536f4e0
commit 6848dd5f51

View file

@ -221,7 +221,10 @@ public class SemanticUtil {
static IType getUltimateTypeViaTypedefs(IType type) { static IType getUltimateTypeViaTypedefs(IType type) {
try { try {
while(type instanceof ITypedef) { while(type instanceof ITypedef) {
type= ((ITypedef)type).getType(); IType t= ((ITypedef)type).getType();
if (t == null)
return type;
type= t;
} }
} catch(DOMException e) { } catch(DOMException e) {
type= e.getProblem(); type= e.getProblem();