llvm.org GIT mirror llvm / 85e4eb6
Fix warning compiling with VC++ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14772 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
2 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
9696 return Buffer;
9797 }
9898
99 static inline std::string LowercaseString (const std::string &S) {
99 static inline std::string LowercaseString(const std::string &S) {
100100 std::string result (S);
101101 for (unsigned i = 0; i < S.length(); ++i)
102102 if (isupper (result[i]))
103 result[i] = tolower(result[i]);
103 result[i] = (char)tolower(result[i]);
104104 return result;
105105 }
106106
9696 return Buffer;
9797 }
9898
99 static inline std::string LowercaseString (const std::string &S) {
99 static inline std::string LowercaseString(const std::string &S) {
100100 std::string result (S);
101101 for (unsigned i = 0; i < S.length(); ++i)
102102 if (isupper (result[i]))
103 result[i] = tolower(result[i]);
103 result[i] = (char)tolower(result[i]);
104104 return result;
105105 }
106106