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 | 63d64a80bcdab8481f5ea8127a637cb7fd1f1b0d (patch) | |
tree | efc3e1c5c951cbcec1d06068acbb3db2a48ab1fc /include/Support/StringExtras.h | |
parent | 071f2f13b62d9b1a7b23af4106c61f39b29ca9fc (diff) |
GCC doesn't like prefix form of cast with two identifiers I guess.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14021 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/Support/StringExtras.h')
-rw-r--r-- | include/Support/StringExtras.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Support/StringExtras.h b/include/Support/StringExtras.h index 5cbf9b3e33..6b6472954e 100644 --- a/include/Support/StringExtras.h +++ b/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 |