Closed bnoordhuis closed 4 years ago
The operands to + are promoted from uint16_t to int before addition, making the expression off + len <= buflen emit a warning because buflen is unsigned.
+
uint16_t
int
off + len <= buflen
buflen
Fixes: https://github.com/nodejs/http-parser/issues/514
The operands to
+
are promoted fromuint16_t
toint
before addition, making the expressionoff + len <= buflen
emit a warning becausebuflen
is unsigned.Fixes: https://github.com/nodejs/http-parser/issues/514