[msan] Use sptr instead of ptrdiff_t.

llvm-svn: 176854
This commit is contained in:
Evgeniy Stepanov 2013-03-12 07:21:17 +00:00
parent ba56c8d4f9
commit 26d5bc7fdf
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ void UnpoisonMappedDSO(link_map *map) {
}
// Compute the delta from the real base to get a relocation delta.
ptrdiff_t delta = (uptr)base - preferred_base;
sptr delta = (uptr)base - preferred_base;
// Now we can figure out what the loader really mapped.
for (char *iter = phdrs; iter != phdrs_end; iter += ehdr->e_phentsize) {
Elf_Phdr *phdr = (Elf_Phdr *)iter;