Fix checkcodebase warnings

This commit is contained in:
ISSOtm
2020-01-16 22:31:24 +01:00
parent 89917ef688
commit d6a99981d6
2 changed files with 3 additions and 2 deletions

View File

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

View File

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