[llvm-commits] CVS: llvm/include/llvm/ADT/StringExtras.h
Reid Spencer
reid at x10sys.com
Thu Jun 1 00:04:08 PDT 2006
Changes in directory llvm/include/llvm/ADT:
StringExtras.h updated: 1.32 -> 1.33
---
Log message:
Favor C++ casts over C casts in C++ code.
---
Diffs of the changes: (+2 -2)
StringExtras.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/ADT/StringExtras.h
diff -u llvm/include/llvm/ADT/StringExtras.h:1.32 llvm/include/llvm/ADT/StringExtras.h:1.33
--- llvm/include/llvm/ADT/StringExtras.h:1.32 Wed May 31 16:25:50 2006
+++ llvm/include/llvm/ADT/StringExtras.h Thu Jun 1 02:03:53 2006
@@ -57,8 +57,8 @@
}
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;
More information about the llvm-commits
mailing list