Skip to content

Commit

Permalink
Fix shadow parameter warning (#1936)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfsimoneau authored Sep 12, 2024
1 parent de36ea7 commit 932b1cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ inline unsigned char to_lower(int c) {
inline bool equal(const std::string &a, const std::string &b) {
return a.size() == b.size() &&
std::equal(a.begin(), a.end(), b.begin(),
[](char a, char b) { return to_lower(a) == to_lower(b); });
[](char ca, char cb) { return to_lower(ca) == to_lower(cb); });
}

struct equal_to {
Expand Down

0 comments on commit 932b1cb

Please sign in to comment.