Provide string arguments to errors in constexpr_BankSection

How the f did it work before
This commit is contained in:
ISSOtm
2020-01-13 15:12:55 +01:00
parent 95cd0c6e53
commit 86a28e8201

View File

@@ -67,9 +67,9 @@ void constexpr_BankSection(struct ConstExpression *expr, char *tzSectionName)
struct Section *pSection = out_FindSectionByName(tzSectionName);
if (!pSection)
yyerror("Section \"%s\" doesn't exist");
yyerror("Section \"%s\" doesn't exist", tzSectionName);
else if (pSection->nBank == -1)
yyerror("Section \"%s\"'s bank is not known yet");
yyerror("Section \"%s\"'s bank is not known yet", tzSectionName);
else
constexpr_Number(expr, pSection->nBank);
}