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 | |
parent | 071f2f13b62d9b1a7b23af4106c61f39b29ca9fc (diff) | |
download | external_llvm-63d64a80bcdab8481f5ea8127a637cb7fd1f1b0d.zip external_llvm-63d64a80bcdab8481f5ea8127a637cb7fd1f1b0d.tar.gz external_llvm-63d64a80bcdab8481f5ea8127a637cb7fd1f1b0d.tar.bz2 |
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
-rw-r--r-- | include/Support/StringExtras.h | 2 | ||||
-rw-r--r-- | include/llvm/ADT/StringExtras.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/Support/StringExtras.h b/include/Support/StringExtras.h index 5cbf9b3..6b64729 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 diff --git a/include/llvm/ADT/StringExtras.h b/include/llvm/ADT/StringExtras.h index 5cbf9b3..6b64729 100644 --- a/include/llvm/ADT/StringExtras.h +++ b/include/llvm/ADT/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 |