[llvm-commits] CVS: llvm/include/Support/StringExtras.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Jun 4 15:26:01 PDT 2004
Changes in directory llvm/include/Support:
StringExtras.h updated: 1.13 -> 1.14
---
Log message:
GCC doesn't like prefix form of cast with two identifiers I guess.
---
Diffs of the changes: (+1 -1)
Index: llvm/include/Support/StringExtras.h
diff -u llvm/include/Support/StringExtras.h:1.13 llvm/include/Support/StringExtras.h:1.14
--- llvm/include/Support/StringExtras.h:1.13 Fri Jun 4 14:10:30 2004
+++ llvm/include/Support/StringExtras.h Fri Jun 4 15:21:53 2004
@@ -28,7 +28,7 @@
if (X == 0) *--BufPtr = '0'; // Handle special case...
while (X) {
- unsigned char Mod = unsigned char(X) & 15;
+ unsigned char Mod = (unsigned char)X & 15;
if (Mod < 10)
*--BufPtr = '0' + Mod;
else
More information about the llvm-commits
mailing list