summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-04 20:21:53 +0000
committerChris Lattner <sabre@nondot.org>2004-06-04 20:21:53 +0000
commit875779a87a797ff0d380694e36b03d9319e2fc20 (patch)
treeb6dad0608221bcc3ed3af8b2657b97ef203f624f /llvm
parent1278759a2cd00883622327af11575d0212d9884e (diff)
downloadbcm5719-llvm-875779a87a797ff0d380694e36b03d9319e2fc20.tar.gz
bcm5719-llvm-875779a87a797ff0d380694e36b03d9319e2fc20.zip
GCC doesn't like prefix form of cast with two identifiers I guess.
llvm-svn: 14021
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/Support/StringExtras.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/Support/StringExtras.h b/llvm/include/Support/StringExtras.h
index 5cbf9b3e338..6b6472954ee 100644
--- a/llvm/include/Support/StringExtras.h
+++ b/llvm/include/Support/StringExtras.h
@@ -28,7 +28,7 @@ static inline std::string utohexstr(uint64_t X) {
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
OpenPOWER on IntegriCloud