aboutsummaryrefslogtreecommitdiff
path: root/include/Support/StringExtras.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Support/StringExtras.h')
-rw-r--r--include/Support/StringExtras.h2
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