diff --git a/include/Support/StringExtras.h b/include/Support/StringExtras.h index b0f5c51ed0b..2c50c1cd5be 100644 --- a/include/Support/StringExtras.h +++ b/include/Support/StringExtras.h @@ -36,7 +36,7 @@ static inline std::string utohexstr(uint64_t X) { return std::string(BufPtr); } -static inline std::string utostr(uint64_t X, bool isNeg = false) { +static inline std::string utostr(unsigned long long X, bool isNeg = false) { char Buffer[40]; char *BufPtr = Buffer+39; diff --git a/include/llvm/ADT/StringExtras.h b/include/llvm/ADT/StringExtras.h index b0f5c51ed0b..2c50c1cd5be 100644 --- a/include/llvm/ADT/StringExtras.h +++ b/include/llvm/ADT/StringExtras.h @@ -36,7 +36,7 @@ static inline std::string utohexstr(uint64_t X) { return std::string(BufPtr); } -static inline std::string utostr(uint64_t X, bool isNeg = false) { +static inline std::string utostr(unsigned long long X, bool isNeg = false) { char Buffer[40]; char *BufPtr = Buffer+39;