Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit 2a0d106 ("http_parser: revert `memchr()` optimization") introduced a -Wsign-compare warning that manifests itself with gcc 7.4.0 but not older versions. The type of p - q is signed when p and q are pointers and was compared against an unsigned type. Its actual value is always >= 0 however and can be safely cast to size_t. Fixes: nodejs#471 PR-URL: nodejs#472 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
- Loading branch information