mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Favor C++ casts over C casts in C++ code.
llvm-svn: 28622
This commit is contained in:
parent
2c6d390a60
commit
bbc22e1a8a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user