Fix warning compiling with VC++

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14772 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-07-12 20:25:04 +00:00
parent c8cd7e9e99
commit 85e4eb6dc0
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}