diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-06-01 07:03:53 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-06-01 07:03:53 +0000 |
commit | 79818a40d73a1ca6154f0823d599c3208956d5e7 (patch) | |
tree | 3e5c101d539f03f837590aa6eef8decd8cd501cf /include/llvm/ADT/StringExtras.h | |
parent | 192913e281a0e9b97275fa1b84da96b02397323e (diff) | |
download | llvm-79818a40d73a1ca6154f0823d599c3208956d5e7.tar.gz llvm-79818a40d73a1ca6154f0823d599c3208956d5e7.tar.bz2 llvm-79818a40d73a1ca6154f0823d599c3208956d5e7.tar.xz |
Favor C++ casts over C casts in C++ code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28622 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/StringExtras.h')
-rw-r--r-- | include/llvm/ADT/StringExtras.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/StringExtras.h b/include/llvm/ADT/StringExtras.h index f54d89ca46..066594e065 100644 --- a/include/llvm/ADT/StringExtras.h +++ b/include/llvm/ADT/StringExtras.h @@ -57,8 +57,8 @@ static inline std::string utostr_32(uint32_t X, bool isNeg = false) { } static inline std::string utostr(uint64_t X, bool isNeg = false) { - if (X == (uint32_t)X) - return utostr_32((uint32_t)X, isNeg); + if (X == uint32_t(X)) + return utostr_32(uint32_t(X), isNeg); char Buffer[40]; char *BufPtr = Buffer+39; |