mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
make 64-bit safe and fix the build on alpha
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28593 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4c6f2f9e92
commit
cffba3a6e9
@ -55,11 +55,7 @@ static inline std::string utostr(uint64_t X, bool isNeg = false) {
|
||||
return std::string(BufPtr);
|
||||
}
|
||||
|
||||
static inline std::string utostr(unsigned long X, bool isNeg = false) {
|
||||
return utostr(static_cast<uint64_t>(X), isNeg);
|
||||
}
|
||||
|
||||
static inline std::string utostr(unsigned X, bool isNeg = false) {
|
||||
static inline std::string utostr(uint32_t X, bool isNeg = false) {
|
||||
char Buffer[20];
|
||||
char *BufPtr = Buffer+19;
|
||||
|
||||
@ -83,14 +79,7 @@ static inline std::string itostr(int64_t X) {
|
||||
return utostr(static_cast<uint64_t>(X));
|
||||
}
|
||||
|
||||
static inline std::string itostr(long X) {
|
||||
if (X < 0)
|
||||
return utostr(static_cast<uint64_t>(-X), true);
|
||||
else
|
||||
return utostr(static_cast<uint64_t>(X));
|
||||
}
|
||||
|
||||
static inline std::string itostr(int X) {
|
||||
static inline std::string itostr(int32_t X) {
|
||||
if (X < 0)
|
||||
return utostr(static_cast<unsigned>(-X), true);
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user