nodejs / http-parser

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

Fix -Wsign-compare warning #514

Closed bnoordhuis closed 4 years ago

bnoordhuis commented 4 years ago

Received via email:

Hello, commit 9ce7316d breaks build on e2k arch with lcc 1.23.21 (an EDG-based custom compiler for the target platform):

cc  -I. -DHTTP_PARSER_STRICT=1  -Wall -Wextra -Werror -O0 -g  -c http_parser.c -o http_parser_g.o
lcc: "http_parser.c", line 2520: error: comparison between
          signed and unsigned integer expressions
          [-Werror=sign-compare]
      assert(off + len <= buflen && "Port number overflow");