Enable clang-tidy narrowing conversions (#2564)

This commit is contained in:
Andrew Gaul
2024-10-22 19:55:10 +09:00
committed by GitHub
parent d35b5a8905
commit cc5271ef2b
4 changed files with 5 additions and 5 deletions

View File

@ -99,7 +99,7 @@ std::string lower(std::string s)
{
// change each character of the std::string to lower case
for(size_t i = 0; i < s.length(); i++){
s[i] = tolower(s[i]);
s[i] = static_cast<char>(tolower(s[i]));
}
return s;
}