[asan] fix Windows build

llvm-svn: 195012
This commit is contained in:
Kostya Serebryany 2013-11-18 14:26:13 +00:00
parent 3d97c2040d
commit 60ecf38133
1 changed files with 1 additions and 1 deletions

View File

@ -294,6 +294,6 @@ void __sanitizer_annotate_contiguous_container(void *beg_p, void *end_p,
PoisonShadow(b2, c - b2, kAsanUserPoisonedMemoryMagic); PoisonShadow(b2, c - b2, kAsanUserPoisonedMemoryMagic);
if (b1 != b2) { if (b1 != b2) {
CHECK_EQ(b2 - b1, granularity); CHECK_EQ(b2 - b1, granularity);
*(u8*)MemToShadow(b1) = b - b1; *(u8*)MemToShadow(b1) = static_cast<u8>(b - b1);
} }
} }