Fix undefined behavior when reading constant in RGBLINK

This commit is contained in:
ISSOtm
2020-02-07 14:51:13 +01:00
parent b42a04c24e
commit 7903c14993

View File

@@ -110,8 +110,8 @@ static inline void freeRPNStack(void)
/* RPN operators */
static uint8_t getRPNByte(uint8_t const **expression, int32_t *size,
char const *fileName, int32_t lineNo)
static uint32_t getRPNByte(uint8_t const **expression, int32_t *size,
char const *fileName, int32_t lineNo)
{
if (!(*size)--)
errx(1, "%s(%d): RPN expression overread", fileName, lineNo);