diff options
author | Bernard Normier <bernard@zeroc.com> | 2018-11-01 17:14:06 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2018-11-01 17:14:06 -0400 |
commit | 3a763985c52246b1b804cdd7ee7bd49a82e76bd3 (patch) | |
tree | e35b1b0bdf6715ed784d0c86482355528bee81ee /cpp/src/IceUtil/StringUtil.cpp | |
parent | Visual Studio and msbuild updates (diff) | |
download | ice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.tar.bz2 ice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.tar.xz ice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.zip |
Increase Visual Studio warning level to Level4
Fixes #223.
Diffstat (limited to 'cpp/src/IceUtil/StringUtil.cpp')
-rw-r--r-- | cpp/src/IceUtil/StringUtil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IceUtil/StringUtil.cpp b/cpp/src/IceUtil/StringUtil.cpp index f8a2b143bee..6fb40ec3085 100644 --- a/cpp/src/IceUtil/StringUtil.cpp +++ b/cpp/src/IceUtil/StringUtil.cpp @@ -1129,7 +1129,7 @@ IceUtilInternal::toLower(const std::string& s) { if(isascii(s[i])) { - result += tolower(static_cast<unsigned char>(s[i])); + result += static_cast<char>(tolower(static_cast<unsigned char>(s[i]))); } else { @@ -1148,7 +1148,7 @@ IceUtilInternal::toUpper(const std::string& s) { if(isascii(s[i])) { - result += toupper(static_cast<unsigned char>(s[i])); + result += static_cast<char>(toupper(static_cast<unsigned char>(s[i]))); } else { |