From 006f5a3c66cfd4bb648a4fe5f4c9bb0b86ccf940 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 23 Aug 2007 05:21:48 +0000 Subject: [PATCH] default this to radix 10 like the toString(Un)Signed methods. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41311 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/APSInt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ADT/APSInt.h b/include/llvm/ADT/APSInt.h index b73ee76c082..a04f8425ece 100644 --- a/include/llvm/ADT/APSInt.h +++ b/include/llvm/ADT/APSInt.h @@ -54,7 +54,7 @@ public: /// This is used internally to convert an APInt to a string. /// @brief Converts an APInt to a std::string - std::string toString(uint8_t Radix) const { + std::string toString(uint8_t Radix = 10) const { return APInt::toString(Radix, isSigned()); } -- 2.34.1