summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_printf.cc
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2013-05-29 14:11:44 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2013-05-29 14:11:44 +0000
commit5e97ba38b00eb843a55189bb913b445cbe620894 (patch)
treeb39a13cbc2c656a0299e44c2bada260db62132ff /lib/sanitizer_common/sanitizer_printf.cc
parent12d01bac1c09a8412546e71485a3cba2d416c0fc (diff)
Fix MSVC W3 compiler warnings
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182857 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_printf.cc')
-rw-r--r--lib/sanitizer_common/sanitizer_printf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_printf.cc b/lib/sanitizer_common/sanitizer_printf.cc
index 5935d7f17..74c628923 100644
--- a/lib/sanitizer_common/sanitizer_printf.cc
+++ b/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);
}