diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-12 20:25:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-12 20:25:04 +0000 |
commit | 85e4eb6dc039928630c89627ee728764282a129d (patch) | |
tree | 38f77b2efee524268a2cd0e2374ed598020421d0 | |
parent | c8cd7e9e990ff5c65fd78945cca0b97153cf7a48 (diff) | |
download | external_llvm-85e4eb6dc039928630c89627ee728764282a129d.zip external_llvm-85e4eb6dc039928630c89627ee728764282a129d.tar.gz external_llvm-85e4eb6dc039928630c89627ee728764282a129d.tar.bz2 |
Fix warning compiling with VC++
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14772 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/Support/StringExtras.h | 4 | ||||
-rw-r--r-- | include/llvm/ADT/StringExtras.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/Support/StringExtras.h b/include/Support/StringExtras.h index daf866f..ce268ca 100644 --- a/include/Support/StringExtras.h +++ b/include/Support/StringExtras.h @@ -97,11 +97,11 @@ static inline std::string ftostr(double V) { return Buffer; } -static inline std::string LowercaseString (const std::string &S) { +static inline std::string LowercaseString(const std::string &S) { std::string result (S); for (unsigned i = 0; i < S.length(); ++i) if (isupper (result[i])) - result[i] = tolower(result[i]); + result[i] = (char)tolower(result[i]); return result; } diff --git a/include/llvm/ADT/StringExtras.h b/include/llvm/ADT/StringExtras.h index daf866f..ce268ca 100644 --- a/include/llvm/ADT/StringExtras.h +++ b/include/llvm/ADT/StringExtras.h @@ -97,11 +97,11 @@ static inline std::string ftostr(double V) { return Buffer; } -static inline std::string LowercaseString (const std::string &S) { +static inline std::string LowercaseString(const std::string &S) { std::string result (S); for (unsigned i = 0; i < S.length(); ++i) if (isupper (result[i])) - result[i] = tolower(result[i]); + result[i] = (char)tolower(result[i]); return result; } |