diff options
Diffstat (limited to 'include/Support/StringExtras.h')
-rw-r--r-- | include/Support/StringExtras.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/Support/StringExtras.h b/include/Support/StringExtras.h index 0ca6609ff4..b0f5c51ed0 100644 --- a/include/Support/StringExtras.h +++ b/include/Support/StringExtras.h @@ -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; |