[llvm-commits] CVS: llvm/include/Support/StringExtras.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Jul 12 13:25:14 PDT 2004
Changes in directory llvm/include/Support:
StringExtras.h updated: 1.16 -> 1.17
---
Log message:
Fix warning compiling with VC++
---
Diffs of the changes: (+2 -2)
Index: llvm/include/Support/StringExtras.h
diff -u llvm/include/Support/StringExtras.h:1.16 llvm/include/Support/StringExtras.h:1.17
--- llvm/include/Support/StringExtras.h:1.16 Thu Jun 24 19:18:02 2004
+++ llvm/include/Support/StringExtras.h Mon Jul 12 15:25:04 2004
@@ -97,11 +97,11 @@
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;
}
More information about the llvm-commits
mailing list