Skip to content

Commit

Permalink
Merge pull request #2 from luizstudios/master
Browse files Browse the repository at this point in the history
Avoid C4244 warning
  • Loading branch information
metayeti authored Feb 14, 2021
2 parents d150283 + 61d9bad commit d80ac22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mini/ini.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ namespace mINI
#ifndef MINI_CASE_SENSITIVE
inline void toLower(std::string& str)
{
std::transform(str.begin(), str.end(), str.begin(), ::tolower);
std::transform(str.begin(), str.end(), str.begin(), [](const char c)
{
return static_cast<const char>(std::tolower(c));
}
}
#endif
inline void replace(std::string& str, std::string const& a, std::string const& b)
Expand Down

0 comments on commit d80ac22

Please sign in to comment.