XXX Missing parameter in call to assembleStatementBody

assembleStatementBody has five parameters:

assembleStatementBody(kind, body, cumulativeLineNumber, worryAboutIf, ifFixupList)
  statementKindType       kind;
  statementBodyType       body;
  int                     cumulativeLineNumber;
  bool                    worryAboutIf;
  simpleFixupListType   **ifFixupList;

but here it is called with only four. The third parameter is missing.
I randomly inserted a 0.
This commit is contained in:
Peter De Wachter 2016-01-23 18:11:23 +01:00
parent 2306979620
commit 086027b1b5
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ assembleStructDefinitionBody(structBody)
expand(listableStatement(structBody->kindOfStatement) ?
(expandLabel(), tabIndent()) : 0);
assembleStatementBody(structBody->kindOfStatement,
structBody->statementBody, FALSE, &dummy);
structBody->statementBody, 0 /* random guess */, FALSE, &dummy);
if (currentFieldOffset > MAXIMUM_ALLOWED_STRUCT_SIZE) {
error(STRUCT_TOO_BIG_ERROR);
return(NULL);