diff options
Diffstat (limited to 'include/Support/StringExtras.h')
-rw-r--r-- | include/Support/StringExtras.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/Support/StringExtras.h b/include/Support/StringExtras.h index 2ebac81..08e5eb7 100644 --- a/include/Support/StringExtras.h +++ b/include/Support/StringExtras.h @@ -57,14 +57,14 @@ static inline std::string utostr(unsigned long long X, bool isNeg = false) { static inline std::string itostr(int64_t X) { if (X < 0) - return utostr((uint64_t)-X, true); + return utostr(static_cast<uint64_t>(-X), true); else - return utostr((uint64_t)X); + return utostr(static_cast<uint64_t>(X)); } static inline std::string utostr(unsigned long X, bool isNeg = false) { - return utostr((unsigned long long)X, isNeg); + return utostr(static_cast<unsigned long long>(X), isNeg); } static inline std::string utostr(unsigned X, bool isNeg = false) { @@ -86,9 +86,9 @@ static inline std::string utostr(unsigned X, bool isNeg = false) { static inline std::string itostr(int X) { if (X < 0) - return utostr((unsigned)-X, true); + return utostr(static_cast<unsigned>(-X), true); else - return utostr((unsigned)X); + return utostr(static_cast<unsigned>(X)); } static inline std::string ftostr(double V) { |