From d6a99981d6feede785cade9240c486cf6ba1b5aa Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Thu, 16 Jan 2020 22:31:24 +0100 Subject: [PATCH] Fix checkcodebase warnings --- src/asm/constexpr.c | 3 ++- src/link/object.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/asm/constexpr.c b/src/asm/constexpr.c index 93ddb4b9..093d8bb6 100644 --- a/src/asm/constexpr.c +++ b/src/asm/constexpr.c @@ -69,7 +69,8 @@ void constexpr_BankSection(struct ConstExpression *expr, char *tzSectionName) if (!pSection) yyerror("Section \"%s\" doesn't exist", tzSectionName); else if (pSection->nBank == -1) - yyerror("Section \"%s\"'s bank is not known yet", tzSectionName); + yyerror("Section \"%s\"'s bank is not known yet", + tzSectionName); else constexpr_Number(expr, pSection->nBank); } diff --git a/src/link/object.c b/src/link/object.c index df78c51c..64f3adc0 100644 --- a/src/link/object.c +++ b/src/link/object.c @@ -62,7 +62,7 @@ static int64_t readlong(FILE *file) * however causes values larger than 127 to be too large when * shifted, potentially triggering undefined behavior. */ - value |= (unsigned)byte << shift; + value |= (unsigned int)byte << shift; } return value; }