diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2013-05-29 14:11:44 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2013-05-29 14:11:44 +0000 |
commit | 5e97ba38b00eb843a55189bb913b445cbe620894 (patch) | |
tree | b39a13cbc2c656a0299e44c2bada260db62132ff /lib/asan/asan_poisoning.h | |
parent | 12d01bac1c09a8412546e71485a3cba2d416c0fc (diff) | |
download | compiler-rt-5e97ba38b00eb843a55189bb913b445cbe620894.tar.gz |
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/asan/asan_poisoning.h')
-rw-r--r-- | lib/asan/asan_poisoning.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asan/asan_poisoning.h b/lib/asan/asan_poisoning.h index 86f81e5d0..91275465d 100644 --- a/lib/asan/asan_poisoning.h +++ b/lib/asan/asan_poisoning.h @@ -50,7 +50,7 @@ ALWAYS_INLINE void FastPoisonShadowPartialRightRedzone( } else if (i >= size) { *shadow = (SHADOW_GRANULARITY == 128) ? 0xff : value; // unaddressable } else { - *shadow = size - i; // first size-i bytes are addressable + *shadow = static_cast<u8>(size - i); // first size-i bytes are addressable } } } |