Enable -Wsign-compare and fix the warnings

This commit is contained in:
ISSOtm
2022-02-05 14:19:25 +01:00
committed by Eldred Habert
parent 72b677a8d7
commit ac59ecf3c0
7 changed files with 11 additions and 15 deletions

View File

@@ -111,7 +111,7 @@ static uint32_t getRPNByte(uint8_t const **expression, int32_t *size,
static struct Symbol const *getSymbol(struct Symbol const * const *symbolList,
uint32_t index)
{
assert(index != -1); /* PC needs to be handled specially, not here */
assert(index != (uint32_t)-1); /* PC needs to be handled specially, not here */
struct Symbol const *symbol = symbolList[index];
/* If the symbol is defined elsewhere... */