diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-06-04 20:21:53 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-06-04 20:21:53 +0000 |
| commit | 875779a87a797ff0d380694e36b03d9319e2fc20 (patch) | |
| tree | b6dad0608221bcc3ed3af8b2657b97ef203f624f /llvm | |
| parent | 1278759a2cd00883622327af11575d0212d9884e (diff) | |
| download | bcm5719-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.h | 2 |
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 |

