nodejs / http-parser

http request/response parser for c

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix -Wsign-compare warning

bnoordhuis opened this issue · comments

Received via email:

Hello, commit 9ce7316 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");