1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 17:35:35 +02:00

Bug 509496 - ClassCastException in CPPASTInitializerList.createEvaluation()

Change-Id: I9008c56a5489b6e4dbf114eddcf1900d8447bff9
This commit is contained in:
Nathan Ridge 2016-12-20 18:04:55 -05:00 committed by Gerrit Code Review @ Eclipse.org
parent 19ce7cc137
commit 74850afc13

View file

@ -166,8 +166,7 @@ public class CPPASTInitializerList extends ASTNode implements ICPPASTInitializer
final ICPPASTInitializerClause[] clauses = getClauses();
ICPPEvaluation[] evals= new ICPPEvaluation[clauses.length];
for (int i = 0; i < evals.length; i++) {
ICPPEvaluationOwner clause = (ICPPEvaluationOwner) clauses[i];
evals[i]= clause.getEvaluation();
evals[i]= clauses[i].getEvaluation();
}
return new EvalInitList(evals, this);
}