Skip to content

Commit

Permalink
Silence new warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB committed Mar 9, 2024
1 parent 7603159 commit 23a8e0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HttpParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ struct HttpParser {
static inline bool isUnlikelyFieldNameByte(unsigned char c)
{
/* Digits and 14 of the 15 non-alphanum characters (lacking hyphen) */
return (c == '~' | c == '|' | c == '`' | c == '_' | c == '^' | c == '.' | c == '+' | c == '*'
| c == '\'' | c == '&' | c == '%' | c == '$' | c == '#' | c == '!') || ((c >= 48) & (c <= 57));
return ((c == '~') | (c == '|') | (c == '`') | (c == '_') | (c == '^') | (c == '.') | (c == '+') | (c == '*')
| (c == '\'') | (c == '&') | (c == '%') | (c == '$') | (c == '#') | (c == '!')) || ((c >= 48) & (c <= 57));
}

static inline bool isFieldNameByteFastLowercased(unsigned char &in) {
Expand Down

0 comments on commit 23a8e0e

Please sign in to comment.