Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix http_parser check for architectures with unsigned chars
http_parser.c has a table named "unhex" that it uses to convert hex characters to their numeric values, e.g. 'F' -> 15. For non-hex characters, the value is -1 but while the table contains int8_t values, the extraction is done using a char. On ARMv8, char is *unsigned*, which means it can't be compared to -1 as this is always false. Comparing to (char)-1 instead will work.
- Loading branch information