GT-3214 corrected function parameter ordinal numbering when more than

one auto-parameter is present
This commit is contained in:
ghidra1 2019-10-03 13:42:45 -04:00
parent 0077735568
commit 5904b7d37d
2 changed files with 106 additions and 31 deletions

View file

@ -826,7 +826,7 @@ public class FunctionDB extends DatabaseObject implements Function {
DataType dt = VariableUtilities.getAutoDataType(this,
returnParam.getFormalDataType(), storage);
try {
autoParams.add(new AutoParameterImpl(dt, autoIndex, storage, this));
autoParams.add(new AutoParameterImpl(dt, autoIndex++, storage, this));
}
catch (InvalidInputException e) {
Msg.error(this,