summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_printf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_printf.cc')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_printf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_printf.cc b/compiler-rt/lib/sanitizer_common/sanitizer_printf.cc
index 5935d7f17a5..74c628923e3 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_printf.cc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_printf.cc
@@ -59,7 +59,7 @@ static int AppendUnsigned(char **buff, const char *buff_end, u64 num,
}
int result = 0;
while (pos-- > 0) {
- uptr digit = num_buffer[pos];
+ char digit = static_cast<char>(num_buffer[pos]);
result += AppendChar(buff, buff_end, (digit < 10) ? '0' + digit
: 'a' + digit - 10);
}
OpenPOWER on IntegriCloud