mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Fix checkcodebase warnings
This commit is contained in:
@@ -69,7 +69,8 @@ void constexpr_BankSection(struct ConstExpression *expr, char *tzSectionName)
|
|||||||
if (!pSection)
|
if (!pSection)
|
||||||
yyerror("Section \"%s\" doesn't exist", tzSectionName);
|
yyerror("Section \"%s\" doesn't exist", tzSectionName);
|
||||||
else if (pSection->nBank == -1)
|
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
|
else
|
||||||
constexpr_Number(expr, pSection->nBank);
|
constexpr_Number(expr, pSection->nBank);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ static int64_t readlong(FILE *file)
|
|||||||
* however causes values larger than 127 to be too large when
|
* however causes values larger than 127 to be too large when
|
||||||
* shifted, potentially triggering undefined behavior.
|
* shifted, potentially triggering undefined behavior.
|
||||||
*/
|
*/
|
||||||
value |= (unsigned)byte << shift;
|
value |= (unsigned int)byte << shift;
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user