Skip to content
This repository was archived by the owner on Nov 6, 2022. It is now read-only.
This repository was archived by the owner on Nov 6, 2022. It is now read-only.

Fix -Wsign-compare warning #514

Description

@bnoordhuis

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");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions