diff options
author | Jack Lloyd <[email protected]> | 2018-10-01 07:11:29 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-10-01 07:11:29 -0400 |
commit | a6726aba83c1f7d2508894367979da47ff632684 (patch) | |
tree | c5d220b4578cbf955db17a89dcb515e84fbc1145 /src/lib/utils/parsing.cpp | |
parent | 02b089dafe53345c4d3da597bcfe0fb3cc92219e (diff) |
Fix more MSVC warnings
Diffstat (limited to 'src/lib/utils/parsing.cpp')
-rw-r--r-- | src/lib/utils/parsing.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/utils/parsing.cpp b/src/lib/utils/parsing.cpp index 8bf96c1ee..8e62c6e03 100644 --- a/src/lib/utils/parsing.cpp +++ b/src/lib/utils/parsing.cpp @@ -347,8 +347,9 @@ std::string tolower_string(const std::string& in) std::string s = in; for(size_t i = 0; i != s.size(); ++i) { - if(std::isalpha(static_cast<unsigned char>(s[i]))) - s[i] = std::tolower(static_cast<unsigned char>(s[i])); + const int cu = static_cast<unsigned char>(s[i]); + if(std::isalpha(cu)) + s[i] = static_cast<char>(std::tolower(cu)); } return s; } |