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; }