Skip to content

Commit

Permalink
Fix newly added warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB committed Mar 9, 2024
1 parent 92ebd48 commit 3d93f60
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 @@ -249,9 +249,9 @@ struct HttpParser {
}

static inline bool isFieldNameByteFastLowercased(unsigned char &in) {
if ((in >= 97 & in <= 122) | (in == '-')) [[likely]] {
if (((in >= 97) & (in <= 122)) | (in == '-')) [[likely]] {
return true;
} else if (in >= 65 & in <= 90) [[unlikely]] {
} else if ((in >= 65) & (in <= 90)) [[unlikely]] {
in |= 32;
return true;
} else if (isFieldNameByte(in)) [[unlikely]] {
Expand Down

0 comments on commit 3d93f60

Please sign in to comment.