projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40831c5
)
Convert some old C-style casts to C++ style.
author
Reid Spencer
<rspencer@reidspencer.com>
Fri, 28 Jan 2005 07:22:20 +0000
(07:22 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Fri, 28 Jan 2005 07:22:20 +0000
(07:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19868
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/StringExtras.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/StringExtras.h
b/include/llvm/ADT/StringExtras.h
index e6d1feac1ab4f7cb9c0b00ab6986a678c7d79008..d952ae236fa466b9f8b77f3bcf5571fd98de4edc 100644
(file)
--- a/
include/llvm/ADT/StringExtras.h
+++ b/
include/llvm/ADT/StringExtras.h
@@
-29,7
+29,7
@@
static inline std::string utohexstr(uint64_t X) {
if (X == 0) *--BufPtr = '0'; // Handle special case...
while (X) {
- unsigned char Mod =
(unsigned char)X
& 15;
+ unsigned char Mod =
static_cast<unsigned char>(X)
& 15;
if (Mod < 10)
*--BufPtr = '0' + Mod;
else
@@
-109,7
+109,7
@@
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] =
(char)tolower(result[i]
);
+ result[i] =
char(tolower(result[i])
);
return result;
}