summaryrefslogtreecommitdiffstats
path: root/llvm/include/Support/StringExtras.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-12 20:25:04 +0000
committerChris Lattner <sabre@nondot.org>2004-07-12 20:25:04 +0000
commite8439dced38090edaa77134f98c4d3265b830503 (patch)
tree6f3fc2ae5752b067616f9f9d20e82b63603646c1 /llvm/include/Support/StringExtras.h
parent47bafde4954e193b1cf3de2d3f0d019bfcd48722 (diff)
downloadbcm5719-llvm-e8439dced38090edaa77134f98c4d3265b830503.tar.gz
bcm5719-llvm-e8439dced38090edaa77134f98c4d3265b830503.zip
Fix warning compiling with VC++
llvm-svn: 14772
Diffstat (limited to 'llvm/include/Support/StringExtras.h')
-rw-r--r--llvm/include/Support/StringExtras.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/Support/StringExtras.h b/llvm/include/Support/StringExtras.h
index daf866f301d..ce268caa5e1 100644
--- a/llvm/include/Support/StringExtras.h
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud