Changes in directory llvm/include/llvm/ADT:
StringExtras.h updated: 1.29 -> 1.30 --- Log message: revert for now --- Diffs of the changes: (+13 -2) StringExtras.h | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) Index: llvm/include/llvm/ADT/StringExtras.h diff -u llvm/include/llvm/ADT/StringExtras.h:1.29 llvm/include/llvm/ADT/StringExtras.h:1.30 --- llvm/include/llvm/ADT/StringExtras.h:1.29 Wed May 31 13:56:42 2006 +++ llvm/include/llvm/ADT/StringExtras.h Wed May 31 14:16:26 2006 @@ -55,7 +55,11 @@ return std::string(BufPtr); } -static inline std::string utostr(uint32_t X, bool isNeg = false) { +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) { char Buffer[20]; char *BufPtr = Buffer+19; @@ -79,7 +83,14 @@ return utostr(static_cast<uint64_t>(X)); } -static inline std::string itostr(int32_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) { if (X < 0) return utostr(static_cast<unsigned>(-X), true); else _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits