From 85e4eb6dc039928630c89627ee728764282a129d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 12 Jul 2004 20:25:04 +0000 Subject: [PATCH] Fix warning compiling with VC++ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14772 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/Support/StringExtras.h | 4 ++-- 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 daf866f301d..ce268caa5e1 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 daf866f301d..ce268caa5e1 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; }