mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
Add support for utostr(unsigned long)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9588 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b5631bfa0c
commit
78e1dcc321
@ -61,6 +61,10 @@ static inline std::string itostr(int64_t X) {
|
||||
}
|
||||
|
||||
|
||||
static inline std::string utostr(unsigned long X, bool isNeg = false) {
|
||||
return utostr((unsigned long long)X, isNeg);
|
||||
}
|
||||
|
||||
static inline std::string utostr(unsigned X, bool isNeg = false) {
|
||||
char Buffer[20];
|
||||
char *BufPtr = Buffer+19;
|
||||
|
@ -61,6 +61,10 @@ static inline std::string itostr(int64_t X) {
|
||||
}
|
||||
|
||||
|
||||
static inline std::string utostr(unsigned long X, bool isNeg = false) {
|
||||
return utostr((unsigned long long)X, isNeg);
|
||||
}
|
||||
|
||||
static inline std::string utostr(unsigned X, bool isNeg = false) {
|
||||
char Buffer[20];
|
||||
char *BufPtr = Buffer+19;
|
||||
|
Loading…
Reference in New Issue
Block a user