From 86a28e8201d1ab0a00544228c44fbe7fef19d81d Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Mon, 13 Jan 2020 15:12:55 +0100 Subject: [PATCH] Provide string arguments to errors in `constexpr_BankSection` How the f did it work before --- src/asm/constexpr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/asm/constexpr.c b/src/asm/constexpr.c index 6742510b..93ddb4b9 100644 --- a/src/asm/constexpr.c +++ b/src/asm/constexpr.c @@ -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); }