Skip to content

Commit

Permalink
Fix fuzzing test error
Browse files Browse the repository at this point in the history
  • Loading branch information
yhirose committed Sep 5, 2024
1 parent 9ff3ff9 commit bda74db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,7 @@ inline unsigned char to_lower(int c) {
240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
255,
};
assert(0 <= c && c < 256);
return table[c];
return table[(unsigned char)(char)c];
}

struct case_ignore_equal {
Expand Down

0 comments on commit bda74db

Please sign in to comment.