mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-01 01:30:36 +00:00
Favor C++ casts over C casts in C++ code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28622 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
192913e281
commit
79818a40d7
@ -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