1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

bug 92885: ArrayIndexOutOfBoundsException

This commit is contained in:
Andrew Niefer 2005-04-27 20:23:03 +00:00
parent 2b88bfaabb
commit 2794dda812

View file

@ -259,7 +259,8 @@ public class CFunction implements IFunction, ICInternalBinding {
IASTStandardFunctionDeclarator orig = (IASTStandardFunctionDeclarator) getPhysicalNode(); IASTStandardFunctionDeclarator orig = (IASTStandardFunctionDeclarator) getPhysicalNode();
IASTParameterDeclaration [] ops = orig.getParameters(); IASTParameterDeclaration [] ops = orig.getParameters();
IASTParameterDeclaration [] nps = ((IASTStandardFunctionDeclarator)fdtor).getParameters(); IASTParameterDeclaration [] nps = ((IASTStandardFunctionDeclarator)fdtor).getParameters();
if(ops.length < nps.length )
return;
for( int i = 0; i < nps.length; i++ ){ for( int i = 0; i < nps.length; i++ ){
IASTName origname = ops[i].getDeclarator().getName(); IASTName origname = ops[i].getDeclarator().getName();
if( origname.getBinding() != null ){ if( origname.getBinding() != null ){