mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Fixes for PR114: Thanks to Reid Spencer!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10029 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -57,14 +57,14 @@ static inline std::string utostr(unsigned long long X, bool isNeg = false) {
|
||||
|
||||
static inline std::string itostr(int64_t X) {
|
||||
if (X < 0)
|
||||
return utostr((uint64_t)-X, true);
|
||||
return utostr(static_cast<uint64_t>(-X), true);
|
||||
else
|
||||
return utostr((uint64_t)X);
|
||||
return utostr(static_cast<uint64_t>(X));
|
||||
}
|
||||
|
||||
|
||||
static inline std::string utostr(unsigned long X, bool isNeg = false) {
|
||||
return utostr((unsigned long long)X, isNeg);
|
||||
return utostr(static_cast<unsigned long long>(X), isNeg);
|
||||
}
|
||||
|
||||
static inline std::string utostr(unsigned X, bool isNeg = false) {
|
||||
@@ -86,9 +86,9 @@ static inline std::string utostr(unsigned X, bool isNeg = false) {
|
||||
|
||||
static inline std::string itostr(int X) {
|
||||
if (X < 0)
|
||||
return utostr((unsigned)-X, true);
|
||||
return utostr(static_cast<unsigned>(-X), true);
|
||||
else
|
||||
return utostr((unsigned)X);
|
||||
return utostr(static_cast<unsigned>(X));
|
||||
}
|
||||
|
||||
static inline std::string ftostr(double V) {
|
||||
|
Reference in New Issue
Block a user