mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
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:
parent
c8cd7e9e99
commit
85e4eb6dc0
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user