nodejs / http-parser

http request/response parser for c
MIT License
6.32k stars 1.53k forks source link

Fix -Wsign-compare warning. #515

Closed bnoordhuis closed 4 years ago

bnoordhuis commented 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.

Fixes: https://github.com/nodejs/http-parser/issues/514