llvm.org GIT mirror llvm / be4922a
Convert some old C-style casts to C++ style. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19868 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 15 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2828 if (X == 0) *--BufPtr = '0'; // Handle special case...
2929
3030 while (X) {
31 unsigned char Mod = (unsigned char)X & 15;
31 unsigned char Mod = static_cast(X) & 15;
3232 if (Mod < 10)
3333 *--BufPtr = '0' + Mod;
3434 else
108108 std::string result(S);
109109 for (unsigned i = 0; i < S.length(); ++i)
110110 if (isupper(result[i]))
111 result[i] = (char)tolower(result[i]);
111 result[i] = char(tolower(result[i]));
112112 return result;
113113 }
114114