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:
192913e
)
Favor C++ casts over C casts in C++ code.
author
Reid Spencer
<rspencer@reidspencer.com>
Thu, 1 Jun 2006 07:03:53 +0000
(07:03 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Thu, 1 Jun 2006 07:03:53 +0000
(07:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28622
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 f54d89ca4644ae2aade5ec1f623d1fbf9743a807..066594e0650a2c411904e4ff7e035f4b105442b9 100644
(file)
--- a/
include/llvm/ADT/StringExtras.h
+++ b/
include/llvm/ADT/StringExtras.h
@@
-57,8
+57,8
@@
static inline std::string utostr_32(uint32_t X, bool isNeg = false) {
}
static inline std::string utostr(uint64_t X, bool isNeg = false) {
- if (X ==
(uint32_t)X
)
- return utostr_32(
(uint32_t)X
, isNeg);
+ if (X ==
uint32_t(X)
)
+ return utostr_32(
uint32_t(X)
, isNeg);
char Buffer[40];
char *BufPtr = Buffer+39;