Fix shadow parameter warning (#1936)

This commit is contained in:
Jean-Francois Simoneau 2024-09-12 12:02:25 -04:00 committed by GitHub
parent de36ea7755
commit 932b1cbc32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {