From 63d64a80bcdab8481f5ea8127a637cb7fd1f1b0d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 4 Jun 2004 20:21:53 +0000 Subject: [PATCH] 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 --- include/Support/StringExtras.h | 2 +- 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 5cbf9b3e338..6b6472954ee 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 5cbf9b3e338..6b6472954ee 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