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:
parent
2b88bfaabb
commit
2794dda812
1 changed files with 2 additions and 1 deletions
|
@ -259,7 +259,8 @@ public class CFunction implements IFunction, ICInternalBinding {
|
|||
IASTStandardFunctionDeclarator orig = (IASTStandardFunctionDeclarator) getPhysicalNode();
|
||||
IASTParameterDeclaration [] ops = orig.getParameters();
|
||||
IASTParameterDeclaration [] nps = ((IASTStandardFunctionDeclarator)fdtor).getParameters();
|
||||
|
||||
if(ops.length < nps.length )
|
||||
return;
|
||||
for( int i = 0; i < nps.length; i++ ){
|
||||
IASTName origname = ops[i].getDeclarator().getName();
|
||||
if( origname.getBinding() != null ){
|
||||
|
|
Loading…
Add table
Reference in a new issue